10:52:31 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/127145 10:52:31 Running as SYSTEM 10:52:31 [EnvInject] - Loading node environment variables. 10:52:31 Building remotely on prd-ubuntu2204-docker-4c-16g-66437 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-titanium 10:52:32 [ssh-agent] Looking for ssh-agent implementation... 10:52:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 10:52:32 $ ssh-agent 10:52:32 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXK6Dx3X/agent.1578 10:52:32 SSH_AGENT_PID=1580 10:52:32 [ssh-agent] Started. 10:52:32 Running ssh-add (command line suppressed) 10:52:32 Identity added: /w/workspace/transportpce-tox-verify-titanium@tmp/private_key_2896808649067412748.key (/w/workspace/transportpce-tox-verify-titanium@tmp/private_key_2896808649067412748.key) 10:52:32 [ssh-agent] Using credentials jenkins (jenkins-ssh) 10:52:32 The recommended git tool is: NONE 10:52:36 using credential jenkins-ssh 10:52:36 Wiping out workspace first. 10:52:36 Cloning the remote Git repository 10:52:36 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 10:52:36 > git init /w/workspace/transportpce-tox-verify-titanium # timeout=10 10:52:36 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 10:52:36 > git --version # timeout=10 10:52:36 > git --version # 'git version 2.34.1' 10:52:36 using GIT_SSH to set credentials jenkins-ssh 10:52:36 Verifying host key using known hosts file, will automatically accept unseen keys 10:52:36 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 10:52:41 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 10:52:41 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 10:52:41 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 10:52:41 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 10:52:41 using GIT_SSH to set credentials jenkins-ssh 10:52:41 Verifying host key using known hosts file, will automatically accept unseen keys 10:52:41 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/45/127145/1 # timeout=10 10:52:42 > git rev-parse 20c5c07859495b621fcba4859f23bb9442d57a09^{commit} # timeout=10 10:52:42 Checking out Revision 20c5c07859495b621fcba4859f23bb9442d57a09 (refs/changes/45/127145/1) 10:52:42 > git config core.sparsecheckout # timeout=10 10:52:42 > git checkout -f 20c5c07859495b621fcba4859f23bb9442d57a09 # timeout=10 10:52:45 Commit message: "fix: pin releng-reusable-workflows to v0.11.0" 10:52:45 > git rev-parse FETCH_HEAD^{commit} # timeout=10 10:52:45 > git rev-list --no-walk c5b1c770f7c5a1a7625577bb927fde5543dab288 # timeout=10 10:52:45 > git remote # timeout=10 10:52:45 > git submodule init # timeout=10 10:52:45 > git submodule sync # timeout=10 10:52:45 > git config --get remote.origin.url # timeout=10 10:52:45 > git submodule init # timeout=10 10:52:45 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 10:52:45 ERROR: No submodules found. 10:52:46 provisioning config files... 10:52:46 copy managed file [npmrc] to file:/home/jenkins/.npmrc 10:52:46 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 10:52:46 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins13378133212980327862.sh 10:52:46 ---> python-tools-install.sh 10:52:46 Setup pyenv: 10:52:46 * system (set by /opt/pyenv/version) 10:52:46 * 3.8.20 (set by /opt/pyenv/version) 10:52:46 * 3.9.20 (set by /opt/pyenv/version) 10:52:46 3.10.15 10:52:46 3.11.10 10:52:51 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-XrQ3 10:52:51 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 10:52:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:52:55 lf-activate-venv(): INFO: Installing additional packages: lftools 10:53:20 lf-activate-venv(): INFO: Adding /tmp/venv-XrQ3/bin to PATH 10:53:20 Generating Requirements File 10:53:52 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 10:53:52 botocore 1.43.118 requires python-dateutil<3.0.0,>=2.1, but you have python-dateutil 3.0.0 which is incompatible. 10:53:52 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 10:53:53 Python 3.11.10 10:53:53 pip 26.2.2 from /tmp/venv-XrQ3/lib/python3.11/site-packages/pip (python 3.11) 10:53:53 aiohappyeyeballs==2.7.1 10:53:53 aiohttp==3.14.5 10:53:53 aiosignal==1.4.0 10:53:53 appdirs==1.4.4 10:53:53 argcomplete==3.7.2 10:53:53 aspy.yaml==1.3.0 10:53:53 attrs==26.1.0 10:53:53 autopage==0.6.0 10:53:53 beautifulsoup4==4.15.0 10:53:53 boto3==1.43.118 10:53:53 botocore==1.43.118 10:53:53 bs4==0.0.2 10:53:53 certifi==2026.10.19 10:53:53 cffi==2.1.1 10:53:53 cfgv==3.5.0 10:53:53 chardet==7.7.0 10:53:53 charset-normalizer==3.5.2 10:53:53 click==8.5.0 10:53:53 cliff==4.17.0 10:53:53 cmd2==4.3.0 10:53:53 cryptography==3.3.2 10:53:53 debtcollector==3.1.0 10:53:53 decorator==5.3.1 10:53:53 defusedxml==0.7.1 10:53:53 Deprecated==1.3.1 10:53:53 distlib==0.4.4 10:53:53 dnspython==2.9.0 10:53:53 docker==7.2.0 10:53:53 dogpile.cache==1.5.0 10:53:53 durationpy==0.11 10:53:53 email-validator==2.3.0 10:53:53 filelock==4.2.4 10:53:53 frozenlist==1.8.0 10:53:53 future==1.0.0 10:53:53 gitdb==4.0.12 10:53:53 GitPython==3.2.1 10:53:53 httplib2==0.30.2 10:53:53 identify==2.6.20 10:53:53 idna==3.20 10:53:53 importlib-resources==1.5.0 10:53:53 iso8601==2.1.0 10:53:53 Jinja2==3.1.6 10:53:53 jmespath==1.1.0 10:53:53 jsonpatch==1.36 10:53:53 jsonpointer==3.4 10:53:53 jsonschema==4.26.0 10:53:53 jsonschema-specifications==2025.9.1 10:53:53 keystoneauth1==5.18.1 10:53:53 kubernetes==36.0.3 10:53:53 lftools==0.37.26 10:53:53 lxml==6.1.3 10:53:53 markdown-it-py==4.2.0 10:53:53 MarkupSafe==3.0.4 10:53:53 mdurl==0.1.2 10:53:53 msgpack==1.2.3 10:53:53 multi_key_dict==2.0.3 10:53:53 multidict==7.1.0 10:53:53 munch==4.0.0 10:53:53 netaddr==1.3.0 10:53:53 niet==1.4.2 10:53:53 nodeenv==1.11.0 10:53:53 oauth2client==4.1.3 10:53:53 oauthlib==4.0.0 10:53:53 openstacksdk==4.22.0 10:53:53 os-service-types==1.9.0 10:53:53 osc-lib==4.7.0 10:53:53 oslo.config==10.7.0 10:53:53 oslo.context==6.5.0 10:53:53 oslo.i18n==6.9.0 10:53:53 oslo.log==8.3.2 10:53:53 oslo.serialization==5.11.0 10:53:53 oslo.utils==10.2.0 10:53:53 packaging==26.3 10:53:53 pbr==7.1.3 10:53:53 platformdirs==4.13.5 10:53:53 prettytable==3.18.0 10:53:53 prompt_toolkit==3.0.53 10:53:53 propcache==0.5.4 10:53:53 psutil==7.2.2 10:53:53 pyasn1==0.6.4 10:53:53 pyasn1_modules==0.4.2 10:53:53 pycparser==3.12 10:53:53 pygerrit2==2.0.15 10:53:53 PyGithub==2.10.0 10:53:53 Pygments==2.21.0 10:53:53 PyJWT==2.15.1 10:53:53 PyNaCl==1.6.2 10:53:53 pyparsing==2.4.7 10:53:53 pyperclip==1.11.0 10:53:53 pyrsistent==0.20.0 10:53:53 python-dateutil==3.0.0 10:53:53 python-discovery==1.6.4 10:53:53 python-heatclient==5.3.0 10:53:53 python-jenkins==1.8.3 10:53:53 python-keystoneclient==6.0.0 10:53:53 python-magnumclient==5.0.0 10:53:53 python-manilaclient==6.3.0 10:53:53 python-openstackclient==10.5.0 10:53:53 python-swiftclient==4.11.0 10:53:53 PyYAML==6.0.3 10:53:53 referencing==0.37.0 10:53:53 requests==2.34.2 10:53:53 requests-oauthlib==2.0.0 10:53:53 rfc3986==2.0.0 10:53:53 rich==15.0.0 10:53:53 rich-argparse==1.8.0 10:53:53 rpds-py==2026.9.1 10:53:53 rsa==4.9.1 10:53:53 ruamel.yaml==0.19.1 10:53:53 ruamel.yaml.clib==0.2.15 10:53:53 s3transfer==0.19.3 10:53:53 simplejson==4.2.0 10:53:53 six==1.17.0 10:53:53 smmap==5.0.3 10:53:53 soupsieve==3.0.4 10:53:53 stevedore==5.9.1 10:53:53 tabulate==0.10.0 10:53:53 toml==0.10.2 10:53:53 tomlkit==0.15.2 10:53:53 tqdm==4.70.1 10:53:53 typing_extensions==4.16.0 10:53:53 tzdata==2026.5 10:53:53 urllib3==1.26.20 10:53:53 virtualenv==21.14.13 10:53:53 wcwidth==0.9.3 10:53:53 websocket-client==1.9.2 10:53:53 wrapt==2.5.1 10:53:53 xdg==6.0.0 10:53:53 xmltodict==1.0.4 10:53:53 yarl==1.25.1 10:53:53 yq==4.4.5 10:53:53 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins2379743814339811011.sh 10:53:53 ---> uv-install.sh 10:53:53 Installing uv/uvx (latest) using shell installer 10:53:54 2026-10-23 10:53:54 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71300/71300] -> "/tmp/uv-install-K0HBFI.sh" [1] 10:53:54 downloading uv 0.13.5 x86_64-unknown-linux-gnu 10:53:54 installing to /home/jenkins/.local/bin 10:53:54 uv 10:53:54 uvx 10:53:54 everything's installed! 10:53:54 10:53:54 To add $HOME/.local/bin to your PATH, either restart your shell or run: 10:53:54 10:53:54 source $HOME/.local/bin/env (sh, bash, zsh) 10:53:54 source $HOME/.local/bin/env.fish (fish) 10:53:54 Adding install location to PATH 10:53:54 ---> Validating uv/uvx install 10:53:54 uvx 0.13.5 (x86_64-unknown-linux-gnu) 10:53:54 [EnvInject] - Injecting environment variables from a build step. 10:53:54 [EnvInject] - Injecting as environment variables the properties content 10:53:54 PYTHON=python3 10:53:54 10:53:54 [EnvInject] - Variables injected successfully. 10:53:54 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins1271052846983125491.sh 10:53:54 ---> tox-install.sh 10:53:54 + source /home/jenkins/lf-env.sh 10:53:54 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:53:54 ++ mktemp -d /tmp/venv-XXXX 10:53:54 + lf_venv=/tmp/venv-qoQC 10:53:54 + local venv_file=/tmp/.os_lf_venv 10:53:54 + local python=python3 10:53:54 + local options 10:53:54 + local set_path=true 10:53:54 + local install_args= 10:53:54 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:53:54 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:53:54 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:53:54 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 10:53:54 + true 10:53:54 + case $1 in 10:53:54 + venv_file=/tmp/.toxenv 10:53:54 + shift 2 10:53:54 + true 10:53:54 + case $1 in 10:53:54 + shift 10:53:54 + break 10:53:54 + case $python in 10:53:54 + local pkg_list= 10:53:54 + [[ -d /opt/pyenv ]] 10:53:54 + echo 'Setup pyenv:' 10:53:54 Setup pyenv: 10:53:54 + export PYENV_ROOT=/opt/pyenv 10:53:54 + PYENV_ROOT=/opt/pyenv 10:53:54 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:53:54 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:53:54 + pyenv versions 10:53:54 system 10:53:54 3.8.20 10:53:54 3.9.20 10:53:54 3.10.15 10:53:54 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 10:53:54 + command -v pyenv 10:53:54 ++ pyenv init - --no-rehash 10:53:55 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 10:53:55 for i in ${!paths[@]}; do 10:53:55 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 10:53:55 fi; done; 10:53:55 echo "${paths[*]}"'\'')" 10:53:55 export PATH="/opt/pyenv/shims:${PATH}" 10:53:55 export PYENV_SHELL=bash 10:53:55 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 10:53:55 pyenv() { 10:53:55 local command 10:53:55 command="${1:-}" 10:53:55 if [ "$#" -gt 0 ]; then 10:53:55 shift 10:53:55 fi 10:53:55 10:53:55 case "$command" in 10:53:55 rehash|shell) 10:53:55 eval "$(pyenv "sh-$command" "$@")" 10:53:55 ;; 10:53:55 *) 10:53:55 command pyenv "$command" "$@" 10:53:55 ;; 10:53:55 esac 10:53:55 }' 10:53:55 +++ bash --norc -ec 'IFS=:; paths=($PATH); 10:53:55 for i in ${!paths[@]}; do 10:53:55 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 10:53:55 fi; done; 10:53:55 echo "${paths[*]}"' 10:53:55 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:53:55 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:53:55 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:53:55 ++ export PYENV_SHELL=bash 10:53:55 ++ PYENV_SHELL=bash 10:53:55 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 10:53:55 +++ complete -F _pyenv pyenv 10:53:55 ++ lf-pyver python3 10:53:55 ++ local py_version_xy=python3 10:53:55 ++ local py_version_xyz= 10:53:55 ++ sed 's/^[ *]* //' 10:53:55 ++ pyenv versions 10:53:55 ++ local command 10:53:55 ++ command=versions 10:53:55 ++ '[' 1 -gt 0 ']' 10:53:55 ++ shift 10:53:55 ++ case "$command" in 10:53:55 ++ command pyenv versions 10:53:55 ++ awk '{ print $1 }' 10:53:55 ++ grep -E '^[0-9.]*[0-9]$' 10:53:55 ++ [[ ! -s /tmp/.pyenv_versions ]] 10:53:55 +++ grep '^3' /tmp/.pyenv_versions 10:53:55 +++ sort -V 10:53:55 +++ tail -n 1 10:53:55 ++ py_version_xyz=3.11.10 10:53:55 ++ [[ -z 3.11.10 ]] 10:53:55 ++ echo 3.11.10 10:53:55 ++ return 0 10:53:55 + pyenv local 3.11.10 10:53:55 + local command 10:53:55 + command=local 10:53:55 + '[' 2 -gt 0 ']' 10:53:55 + shift 10:53:55 + case "$command" in 10:53:55 + command pyenv local 3.11.10 10:53:55 + for arg in "$@" 10:53:55 + case $arg in 10:53:55 + pkg_list+='tox ' 10:53:55 + for arg in "$@" 10:53:55 + case $arg in 10:53:55 + pkg_list+='virtualenv ' 10:53:55 + for arg in "$@" 10:53:55 + case $arg in 10:53:55 + pkg_list+='urllib3~=1.26.15 ' 10:53:55 + [[ -f /tmp/.toxenv ]] 10:53:55 + [[ ! -f /tmp/.toxenv ]] 10:53:55 + [[ -n '' ]] 10:53:55 + python3 -m venv /tmp/venv-qoQC 10:53:59 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-qoQC' 10:53:59 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-qoQC 10:53:59 + echo /tmp/venv-qoQC 10:53:59 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 10:53:59 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 10:53:59 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 10:53:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:53:59 + local 'pip_opts=--upgrade --quiet' 10:53:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 10:53:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 10:53:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 10:53:59 + [[ -n '' ]] 10:53:59 + [[ -n '' ]] 10:53:59 + lf-venv-pip-install /tmp/venv-qoQC/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:53:59 + local venv_python=/tmp/venv-qoQC/bin/python3 10:53:59 + shift 10:53:59 + local upstream=https://pypi.org/simple 10:53:59 + /tmp/venv-qoQC/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:54:03 + return 0 10:54:03 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 10:54:03 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 10:54:03 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 10:54:03 + lf-venv-pip-install /tmp/venv-qoQC/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:54:03 + local venv_python=/tmp/venv-qoQC/bin/python3 10:54:03 + shift 10:54:03 + local upstream=https://pypi.org/simple 10:54:03 + /tmp/venv-qoQC/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:54:05 + return 0 10:54:05 + type python3 10:54:05 + true 10:54:05 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-qoQC/bin to PATH' 10:54:05 lf-activate-venv(): INFO: Adding /tmp/venv-qoQC/bin to PATH 10:54:05 + PATH=/tmp/venv-qoQC/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:05 + return 0 10:54:05 + python3 --version 10:54:05 Python 3.11.10 10:54:05 + python3 -m pip --version 10:54:05 pip 26.2.2 from /tmp/venv-qoQC/lib/python3.11/site-packages/pip (python 3.11) 10:54:05 + python3 -m pip freeze 10:54:06 cachetools==7.2.4 10:54:06 colorama==0.4.6 10:54:06 distlib==0.4.4 10:54:06 filelock==4.2.4 10:54:06 packaging==26.3 10:54:06 platformdirs==4.13.5 10:54:06 pluggy==1.7.0 10:54:06 pyproject-api==1.12.0 10:54:06 python-discovery==1.6.4 10:54:06 tomli_w==1.2.0 10:54:06 tox==4.67.1 10:54:06 typing_extensions==4.16.0 10:54:06 urllib3==1.26.20 10:54:06 virtualenv==21.14.13 10:54:06 [transportpce-tox-verify-titanium] $ /bin/sh -xe /tmp/jenkins10309865476795444205.sh 10:54:06 [EnvInject] - Injecting environment variables from a build step. 10:54:06 [EnvInject] - Injecting as environment variables the properties content 10:54:06 PARALLEL=True 10:54:06 10:54:06 [EnvInject] - Variables injected successfully. 10:54:06 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins12105161083748463154.sh 10:54:06 ---> tox-run.sh 10:54:06 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:06 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/tox 10:54:06 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-titanium/archives/docs 10:54:06 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/tox 10:54:06 + cd /w/workspace/transportpce-tox-verify-titanium/. 10:54:06 + source /home/jenkins/lf-env.sh 10:54:06 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:54:06 ++ mktemp -d /tmp/venv-XXXX 10:54:06 + lf_venv=/tmp/venv-72xb 10:54:06 + local venv_file=/tmp/.os_lf_venv 10:54:06 + local python=python3 10:54:06 + local options 10:54:06 + local set_path=true 10:54:06 + local install_args= 10:54:06 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 10:54:06 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:54:06 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 10:54:06 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 10:54:06 + true 10:54:06 + case $1 in 10:54:06 + venv_file=/tmp/.toxenv 10:54:06 + shift 2 10:54:06 + true 10:54:06 + case $1 in 10:54:06 + shift 10:54:06 + break 10:54:06 + case $python in 10:54:06 + local pkg_list= 10:54:06 + [[ -d /opt/pyenv ]] 10:54:06 + echo 'Setup pyenv:' 10:54:06 Setup pyenv: 10:54:06 + export PYENV_ROOT=/opt/pyenv 10:54:06 + PYENV_ROOT=/opt/pyenv 10:54:06 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:06 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:06 + pyenv versions 10:54:06 system 10:54:06 3.8.20 10:54:06 3.9.20 10:54:06 3.10.15 10:54:06 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 10:54:06 + command -v pyenv 10:54:06 ++ pyenv init - --no-rehash 10:54:06 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 10:54:06 for i in ${!paths[@]}; do 10:54:06 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 10:54:06 fi; done; 10:54:06 echo "${paths[*]}"'\'')" 10:54:06 export PATH="/opt/pyenv/shims:${PATH}" 10:54:06 export PYENV_SHELL=bash 10:54:06 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 10:54:06 pyenv() { 10:54:06 local command 10:54:06 command="${1:-}" 10:54:06 if [ "$#" -gt 0 ]; then 10:54:06 shift 10:54:06 fi 10:54:06 10:54:06 case "$command" in 10:54:06 rehash|shell) 10:54:06 eval "$(pyenv "sh-$command" "$@")" 10:54:06 ;; 10:54:06 *) 10:54:06 command pyenv "$command" "$@" 10:54:06 ;; 10:54:06 esac 10:54:06 }' 10:54:06 +++ bash --norc -ec 'IFS=:; paths=($PATH); 10:54:06 for i in ${!paths[@]}; do 10:54:06 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 10:54:06 fi; done; 10:54:06 echo "${paths[*]}"' 10:54:06 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:06 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:06 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:06 ++ export PYENV_SHELL=bash 10:54:06 ++ PYENV_SHELL=bash 10:54:06 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 10:54:06 +++ complete -F _pyenv pyenv 10:54:06 ++ lf-pyver python3 10:54:06 ++ local py_version_xy=python3 10:54:06 ++ local py_version_xyz= 10:54:06 ++ pyenv versions 10:54:06 ++ local command 10:54:06 ++ command=versions 10:54:06 ++ '[' 1 -gt 0 ']' 10:54:06 ++ shift 10:54:06 ++ case "$command" in 10:54:06 ++ sed 's/^[ *]* //' 10:54:06 ++ command pyenv versions 10:54:06 ++ awk '{ print $1 }' 10:54:06 ++ grep -E '^[0-9.]*[0-9]$' 10:54:06 ++ [[ ! -s /tmp/.pyenv_versions ]] 10:54:06 +++ grep '^3' /tmp/.pyenv_versions 10:54:06 +++ tail -n 1 10:54:06 +++ sort -V 10:54:06 ++ py_version_xyz=3.11.10 10:54:06 ++ [[ -z 3.11.10 ]] 10:54:06 ++ echo 3.11.10 10:54:06 ++ return 0 10:54:06 + pyenv local 3.11.10 10:54:06 + local command 10:54:06 + command=local 10:54:06 + '[' 2 -gt 0 ']' 10:54:06 + shift 10:54:06 + case "$command" in 10:54:06 + command pyenv local 3.11.10 10:54:06 + for arg in "$@" 10:54:06 + case $arg in 10:54:06 + pkg_list+='tox ' 10:54:06 + for arg in "$@" 10:54:06 + case $arg in 10:54:06 + pkg_list+='virtualenv ' 10:54:06 + for arg in "$@" 10:54:06 + case $arg in 10:54:06 + pkg_list+='urllib3~=1.26.15 ' 10:54:06 + [[ -f /tmp/.toxenv ]] 10:54:06 ++ cat /tmp/.toxenv 10:54:06 + lf_venv=/tmp/venv-qoQC 10:54:06 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qoQC from' file:/tmp/.toxenv 10:54:06 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qoQC from file:/tmp/.toxenv 10:54:06 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 10:54:06 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 10:54:06 + local 'pip_opts=--upgrade --quiet' 10:54:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 10:54:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 10:54:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 10:54:06 + [[ -n '' ]] 10:54:06 + [[ -n '' ]] 10:54:06 + lf-venv-pip-install /tmp/venv-qoQC/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:54:06 + local venv_python=/tmp/venv-qoQC/bin/python3 10:54:06 + shift 10:54:06 + local upstream=https://pypi.org/simple 10:54:06 + /tmp/venv-qoQC/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 10:54:07 + return 0 10:54:07 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 10:54:07 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 10:54:07 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 10:54:07 + lf-venv-pip-install /tmp/venv-qoQC/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:54:07 + local venv_python=/tmp/venv-qoQC/bin/python3 10:54:07 + shift 10:54:07 + local upstream=https://pypi.org/simple 10:54:07 + /tmp/venv-qoQC/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 10:54:08 + return 0 10:54:08 + type python3 10:54:08 + true 10:54:08 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-qoQC/bin to PATH' 10:54:08 lf-activate-venv(): INFO: Adding /tmp/venv-qoQC/bin to PATH 10:54:08 + PATH=/tmp/venv-qoQC/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:08 + return 0 10:54:08 + [[ -d /opt/pyenv ]] 10:54:08 + echo '---> Setting up pyenv' 10:54:08 ---> Setting up pyenv 10:54:08 + export PYENV_ROOT=/opt/pyenv 10:54:08 + PYENV_ROOT=/opt/pyenv 10:54:08 + export PATH=/opt/pyenv/bin:/tmp/venv-qoQC/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:08 + PATH=/opt/pyenv/bin:/tmp/venv-qoQC/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 10:54:08 ++ pwd 10:54:08 + PYTHONPATH=/w/workspace/transportpce-tox-verify-titanium 10:54:08 + export PYTHONPATH 10:54:08 + export TOX_TESTENV_PASSENV=PYTHONPATH 10:54:08 + TOX_TESTENV_PASSENV=PYTHONPATH 10:54:08 + tox --version 10:54:09 4.67.1 from /tmp/venv-qoQC/lib/python3.11/site-packages/tox/__init__.py 10:54:09 + PARALLEL=True 10:54:09 + TOX_OPTIONS_LIST= 10:54:09 + [[ -n '' ]] 10:54:09 + case ${PARALLEL,,} in 10:54:09 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 10:54:09 + tee -a /w/workspace/transportpce-tox-verify-titanium/archives/tox/tox.log 10:54:09 + tox --parallel auto --parallel-live 10:54:11 checkbashisms: freeze> python -m pip freeze --all 10:54:11 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:11 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 10:54:11 docs: install_deps> python -I -m pip install -r docs/requirements.txt 10:54:11 checkbashisms: pip==26.2.2,setuptools==84.2.1 10:54:11 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 10:54:11 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-titanium/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 10:54:11 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 10:54:13 checkbashisms: OK ✔ in 3.45 seconds 10:54:13 pre-commit: install_deps> python -I -m pip install pre-commit 10:54:15 pre-commit: freeze> python -m pip freeze --all 10:54:15 pre-commit: cfgv==3.5.0,distlib==0.4.4,filelock==4.2.4,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.2,platformdirs==4.13.5,pre_commit==4.7.0,python-discovery==1.6.4,PyYAML==6.0.3,setuptools==84.2.1,virtualenv==21.14.13 10:54:15 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./fixCIcentOS8reposMirrors.sh 10:54:15 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-titanium/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 10:54:15 /usr/bin/cpan 10:54:15 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run --all-files --show-diff-on-failure 10:54:16 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 10:54:16 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 10:54:16 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 10:54:16 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 10:54:16 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 10:54:16 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 10:54:17 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 10:54:17 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 10:54:17 buildcontroller: freeze> python -m pip freeze --all 10:54:17 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 10:54:18 buildcontroller: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:18 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh 10:54:18 + update-java-alternatives -l 10:54:18 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 10:54:18 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 10:54:18 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 10:54:18 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 10:54:18 update-alternatives: error: no alternatives for jaotc 10:54:18 update-alternatives: error: no alternatives for rmic 10:54:18 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 10:54:18 java -version 10:54:18 21.0 10:54:18 + JAVA_VER=21.0 10:54:18 + echo 21.0 10:54:18 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 10:54:18 + javac -version 10:54:18 + JAVAC_VER=21.0 10:54:18 + echo 21.0 10:54:18 21.0 10:54:18 No java21 or newer available 10:54:18 + [ 21.0 -ge 21 ] 10:54:18 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 10:54:18 + echo No java21 or newer available 10:54:18 + exit 1 10:54:18 buildcontroller: exit 1 (0.60 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_controller.sh pid=2827 10:54:18 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 10:54:18 [INFO] Once installed this environment will be reused. 10:54:18 buildcontroller: FAIL ✖ in 9.18 seconds 10:54:18 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 10:54:18 [INFO] This may take a few minutes... 10:54:22 pylint: freeze> python -m pip freeze --all 10:54:22 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.2,platformdirs==4.13.5,pylint==4.1.3,setuptools==84.2.1,tomlkit==0.15.2 10:54:22 pylint: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 10:54:23 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 10:54:23 [INFO] Once installed this environment will be reused. 10:54:23 [INFO] This may take a few minutes... 10:54:23 docs: freeze> python -m pip freeze --all 10:54:23 docs-linkcheck: freeze> python -m pip freeze --all 10:54:24 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.10.19,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.58.6,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.4.0,packaging==26.3,picobox==4.0.0,pip==26.2.2,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.2.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==9.1.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.2.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==2.0.0,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,ub-needs-exchange==1.1.0,ub-project==1.1.0,urllib3==2.8.0 10:54:24 docs: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-titanium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-titanium/docs/_build/html 10:54:24 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.10.19,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.58.6,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.4.0,packaging==26.3,picobox==4.0.0,pip==26.2.2,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.2.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==9.1.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.2.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==2.0.0,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,ub-needs-exchange==1.1.0,ub-project==1.1.0,urllib3==2.8.0 10:54:24 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-titanium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-titanium/docs/_build/linkcheck 10:54:26 docs: OK ✔ in 16.88 seconds 10:54:26 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:27 docs-linkcheck: OK ✔ in 17.93 seconds 10:54:27 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:29 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 10:54:29 [INFO] Once installed this environment will be reused. 10:54:29 [INFO] This may take a few minutes... 10:54:33 build_karaf_tests121: freeze> python -m pip freeze --all 10:54:33 [INFO] Installing environment for https://github.com/perltidy/perltidy. 10:54:33 [INFO] Once installed this environment will be reused. 10:54:33 [INFO] This may take a few minutes... 10:54:33 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:33 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 10:54:33 build karaf in karaf121 with ./karaf121.env 10:54:33 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 10:54:33 ./build_karaf_for_tests.sh: 22: mvn: not found 10:54:33 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:54:33 build_karaf_tests121: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3180 10:54:33 build_karaf_tests121: FAIL ✖ in 7 seconds 10:54:33 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:33 build_karaf_tests221: freeze> python -m pip freeze --all 10:54:34 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:34 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 10:54:34 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 10:54:34 ./build_karaf_for_tests.sh: 22: mvn: not found 10:54:34 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:54:34 build karaf in karaf221 with ./karaf221.env 10:54:34 build_karaf_tests221: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3201 10:54:34 build_karaf_tests221: FAIL ✖ in 6.76 seconds 10:54:34 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:39 ************* Module 2.2.1.test12_end2end 10:54:39 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 ************* Module test04_topo_extension 10:54:39 transportpce_tests/tapi/test04_topo_extension.py:361:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 ************* Module common.test_utils 10:54:39 transportpce_tests/common/test_utils.py:530:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 transportpce_tests/common/test_utils.py:556:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 transportpce_tests/common/test_utils.py:592:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 transportpce_tests/common/test_utils.py:610:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 transportpce_tests/common/test_utils.py:641:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 transportpce_tests/common/test_utils.py:662:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 10:54:39 10:54:39 ----------------------------------- 10:54:39 Your code has been rated at 9.99/10 10:54:39 10:54:40 pylint: exit 1 (18.15 seconds) /w/workspace/transportpce-tox-verify-titanium/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=3066 10:54:40 pylint: FAIL ✖ in 21.96 seconds 10:54:40 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:40 trim trailing whitespace.................................................build_karaf_tests71: freeze> python -m pip freeze --all 10:54:40 build_karaf_tests190: freeze> python -m pip freeze --all 10:54:40 Passed 10:54:41 Tabs remover.............................................................build_karaf_tests71: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:41 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 10:54:41 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 10:54:41 ./build_karaf_for_tests.sh: 22: mvn: not found 10:54:41 build karaf in karaf71 with ./karaf71.env 10:54:41 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:54:41 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3354 10:54:41 Passed 10:54:41 build_karaf_tests71: FAIL ✖ in 7.73 seconds 10:54:41 build_karaf_tests190: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:41 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh 10:54:41 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc 10:54:41 ./build_karaf_for_tests.sh: 22: mvn: not found 10:54:41 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 10:54:41 build karaf in karafoc with ./karafoc.env 10:54:41 build_karaf_tests190: exit 127 (0.07 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./build_karaf_for_tests.sh pid=3377 10:54:41 autopep8.................................................................build_karaf_tests190: FAIL ✖ in 7.01 seconds 10:54:41 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:41 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:54:45 Passed 10:54:45 perltidy.................................................................Passed 10:54:45 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-titanium/tests> pre-commit run gitlint-ci --hook-stage manual 10:54:45 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 10:54:45 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 10:54:46 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 10:54:46 [INFO] Once installed this environment will be reused. 10:54:46 [INFO] This may take a few minutes... 10:54:48 buildlighty: freeze> python -m pip freeze --all 10:54:48 buildlighty: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:48 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh 10:54:48 ./build.sh: 7: mvn: not found 10:54:48 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 10:54:48 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-titanium/lighty> ./build.sh pid=3450 10:54:49 buildlighty: FAIL ✖ in 8.44 seconds 10:54:49 sims: freeze> python -m pip freeze --all 10:54:49 sims: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:54:49 sims: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./install_lightynode.sh 10:54:49 Using lighynode version 20.1.0.5 10:54:49 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 10:54:52 gitlint..................................................................Passed 10:55:27 sims: OK ✔ in 11.09 seconds 10:55:27 pre-commit: OK ✔ in 39.74 seconds 10:55:27 testsPCE: freeze> python -m pip freeze --all 10:55:27 testsPCE: bcrypt==5.0.0,certifi==2026.10.19,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.67.0,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.1.0,pbr==5.11.1,pillow==13.0.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==3.0.0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,tzdata==2026.5,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 10:55:27 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce 10:55:27 pytest -q transportpce_tests/pce/test01_pce.py 10:57:28 EEEEEEEEEEEEEEEEEEEE [100%] 10:57:31 ==================================== ERRORS ==================================== 10:57:31 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 10:57:31 10:57:31 cls = 10:57:31 10:57:31 @classmethod 10:57:31 def setUpClass(cls): 10:57:31 # pylint: disable=bare-except 10:57:31 sample_files_parsed = False 10:57:31 time.sleep(20) 10:57:31 try: 10:57:31 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:57:31 "..", "..", "sample_configs", "honeynode-topo.json") 10:57:31 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 10:57:31 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 10:57:31 10:57:31 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:57:31 "..", "..", "sample_configs", "NW-simple-topology.json") 10:57:31 10:57:31 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 10:57:31 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 10:57:31 10:57:31 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:57:31 "..", "..", "sample_configs", "NW-for-test-5-4.json") 10:57:31 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 10:57:31 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 10:57:31 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 10:57:31 "..", "..", "sample_configs", "pce_portmapping_121.json") 10:57:31 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 10:57:31 cls.port_mapping_data = port_mapping.read() 10:57:31 sample_files_parsed = True 10:57:31 except PermissionError as err: 10:57:31 print("Permission Error when trying to read sample files\n", err) 10:57:31 sys.exit(2) 10:57:31 except FileNotFoundError as err: 10:57:31 print("File Not found Error when trying to read sample files\n", err) 10:57:31 sys.exit(2) 10:57:31 except: 10:57:31 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 10:57:31 sys.exit(2) 10:57:31 finally: 10:57:31 if sample_files_parsed: 10:57:31 print("sample files content loaded") 10:57:31 10:57:31 > cls.processes = test_utils.start_tpce() 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 10:57:31 transportpce_tests/pce/test01_pce.py:93: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 def start_tpce(): 10:57:31 if 'NO_ODL_STARTUP' in os.environ: 10:57:31 print('No OpenDaylight instance to start!') 10:57:31 return [] 10:57:31 print('starting OpenDaylight...') 10:57:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:57:31 process = start_lighty() 10:57:31 else: 10:57:31 process = start_karaf() 10:57:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:57:31 print('OpenDaylight started !') 10:57:31 else: 10:57:31 print('OpenDaylight failed to start !') 10:57:31 shutdown_process(process) 10:57:31 for pid in process_list: 10:57:31 shutdown_process(pid) 10:57:31 > sys.exit(1) 10:57:31 E SystemExit: 1 10:57:31 10:57:31 transportpce_tests/common/test_utils.py:232: SystemExit 10:57:31 ---------------------------- Captured stdout setup ----------------------------- 10:57:31 sample files content loaded 10:57:31 starting OpenDaylight... 10:57:31 starting KARAF (karaf) TransportPCE build... 10:57:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:57:31 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f488397a660> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f48839abec0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4885e6c2c0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4884e6c180> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4885e6e020> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f488397a480> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f48839abec0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f48839ab560> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4885e6e020> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f488397a480> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f488341a8e0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f48839abec0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4885e6e020> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f488341afc0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4885e6e020> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4883979da0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4883979ee0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4883979da0> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 10:57:31 10:57:31 cls = 10:57:31 func = . at 0x7f4883419800> 10:57:31 when = 'setup' 10:57:31 reraise = (, ) 10:57:31 10:57:31 @classmethod 10:57:31 def from_call( 10:57:31 cls, 10:57:31 func: Callable[[], TResult], 10:57:31 when: Literal["collect", "setup", "call", "teardown"], 10:57:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:57:31 ) -> CallInfo[TResult]: 10:57:31 """Call func, wrapping the result in a CallInfo. 10:57:31 10:57:31 :param func: 10:57:31 The function to call. Called without arguments. 10:57:31 :type func: Callable[[], _pytest.runner.TResult] 10:57:31 :param when: 10:57:31 The phase in which the function is called. 10:57:31 :param reraise: 10:57:31 Exception or exceptions that shall propagate if raised by the 10:57:31 function, instead of being wrapped in the CallInfo. 10:57:31 """ 10:57:31 excinfo = None 10:57:31 instant = timing.Instant() 10:57:31 try: 10:57:31 > result: TResult | None = func() 10:57:31 ^^^^^^ 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:57:31 lambda: runtest_hook(item=item, **kwds), 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:57:31 return self._hookexec( 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:57:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:57:31 yield 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:57:31 return (yield) 10:57:31 ^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:57:31 item.session._setupstate.setup(item) 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:57:31 col.setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:57:31 super().setup() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:57:31 self._request._fillfixtures() 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:57:31 item.funcargs[argname] = self.getfixturevalue(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:57:31 fixturedef = self._get_active_fixturedef(argname) 10:57:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:57:31 fixturedef.execute(request=subrequest) 10:57:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:57:31 10:57:31 self = 10:57:31 request = > 10:57:31 10:57:31 def execute(self, request: SubRequest) -> FixtureValue: 10:57:31 """Return the value of this fixture, executing it if not cached.""" 10:57:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:57:31 # This needs to be done before checking if we have a cached value, since 10:57:31 # if a dependent fixture has their cache invalidated, e.g. due to 10:57:31 # parametrization, they finalize themselves and fixtures depending on it 10:57:31 # (which will likely include this fixture) setting `self.cached_result = None`. 10:57:31 # See #4871 10:57:31 requested_fixtures_that_should_finalize_us = [] 10:57:31 for argname in self.argnames: 10:57:31 fixturedef = request._get_active_fixturedef(argname) 10:57:31 # Saves requested fixtures in a list so we later can add our finalizer 10:57:31 # to them, ensuring that if a requested fixture gets torn down we get torn 10:57:31 # down first. This is generally handled by SetupState, but still currently 10:57:31 # needed when this fixture is not parametrized but depends on a parametrized 10:57:31 # fixture. 10:57:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:57:31 10:57:31 # Check for (and return) cached value/exception. 10:57:31 if self.cached_result is not None: 10:57:31 request_cache_key = self.cache_key(request) 10:57:31 cache_key = self.cached_result[1] 10:57:31 try: 10:57:31 # Attempt to make a normal == check: this might fail for objects 10:57:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:57:31 cache_hit = bool(request_cache_key == cache_key) 10:57:31 except (ValueError, RuntimeError): 10:57:31 # If the comparison raises, use 'is' as fallback. 10:57:31 cache_hit = request_cache_key is cache_key 10:57:31 10:57:31 if cache_hit: 10:57:31 if self.cached_result[2] is not None: 10:57:31 exc, exc_tb = self.cached_result[2] 10:57:31 raise exc.with_traceback(exc_tb) 10:57:31 else: 10:57:31 return self.cached_result[0] 10:57:31 # We have a previous but differently parametrized fixture instance 10:57:31 # so we need to tear it down before creating a new one. 10:57:31 self.finish(request) 10:57:31 assert self.cached_result is None 10:57:31 10:57:31 # Add finalizer to requested fixtures we saved previously. 10:57:31 # We make sure to do this after checking for cached value to avoid 10:57:31 # adding our finalizer multiple times. (#12135) 10:57:31 finalizer = functools.partial(self.finish, request=request) 10:57:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:57:31 parent_fixture.addfinalizer(finalizer) 10:57:31 10:57:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:57:31 # which is executed last. 10:57:31 > assert not self._finalizers 10:57:31 ^^^^^^^^^^^^^^^^^^^^ 10:57:31 E AssertionError 10:57:31 10:57:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:57:31 =========================== short test summary info ============================ 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 10:57:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 10:57:31 20 errors in 123.76s (0:02:03) 10:57:31 testsPCE: exit 1 (124.08 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh pce pid=3522 10:57:32 testsPCE: FAIL ✖ in 2 minutes 50.83 seconds 10:57:32 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:57:32 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:57:32 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:57:38 tests_tapi: freeze> python -m pip freeze --all 10:57:38 tests121: freeze> python -m pip freeze --all 10:57:38 tests190: freeze> python -m pip freeze --all 10:57:38 tests_tapi: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:57:38 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi 10:57:38 using environment variables from ./karaf221.env 10:57:38 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 10:57:38 tests121: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:57:38 tests121: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 10:57:38 using environment variables from ./karaf121.env 10:57:38 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 10:57:38 tests190: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:57:38 tests190: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc 10:57:38 using environment variables from ./karafoc.env 10:57:38 pytest -q transportpce_tests/oc/test01_portmapping.py 10:59:19 EEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 10:59:20 ==================================== ERRORS ==================================== 10:59:20 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 10:59:20 10:59:20 cls = 10:59:20 10:59:20 @classmethod 10:59:20 def setUpClass(cls): 10:59:20 > cls.processes = test_utils.start_tpce() 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 10:59:20 transportpce_tests/oc/test01_portmapping.py:29: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 def start_tpce(): 10:59:20 if 'NO_ODL_STARTUP' in os.environ: 10:59:20 print('No OpenDaylight instance to start!') 10:59:20 return [] 10:59:20 print('starting OpenDaylight...') 10:59:20 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:59:20 process = start_lighty() 10:59:20 else: 10:59:20 process = start_karaf() 10:59:20 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:59:20 print('OpenDaylight started !') 10:59:20 else: 10:59:20 print('OpenDaylight failed to start !') 10:59:20 shutdown_process(process) 10:59:20 for pid in process_list: 10:59:20 shutdown_process(pid) 10:59:20 > sys.exit(1) 10:59:20 E SystemExit: 1 10:59:20 10:59:20 transportpce_tests/common/test_utils.py:232: SystemExit 10:59:20 ---------------------------- Captured stdout setup ----------------------------- 10:59:20 starting OpenDaylight... 10:59:20 starting KARAF (karafoc) TransportPCE build... 10:59:20 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5a9303f60> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5a9373420> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5aba14360> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5a93440e0> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5a9373240> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5aaac8680> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5a9373380> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5a9373920> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 10:59:20 10:59:20 cls = 10:59:20 func = . at 0x7fc5aaac8680> 10:59:20 when = 'setup' 10:59:20 reraise = (, ) 10:59:20 10:59:20 @classmethod 10:59:20 def from_call( 10:59:20 cls, 10:59:20 func: Callable[[], TResult], 10:59:20 when: Literal["collect", "setup", "call", "teardown"], 10:59:20 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:20 ) -> CallInfo[TResult]: 10:59:20 """Call func, wrapping the result in a CallInfo. 10:59:20 10:59:20 :param func: 10:59:20 The function to call. Called without arguments. 10:59:20 :type func: Callable[[], _pytest.runner.TResult] 10:59:20 :param when: 10:59:20 The phase in which the function is called. 10:59:20 :param reraise: 10:59:20 Exception or exceptions that shall propagate if raised by the 10:59:20 function, instead of being wrapped in the CallInfo. 10:59:20 """ 10:59:20 excinfo = None 10:59:20 instant = timing.Instant() 10:59:20 try: 10:59:20 > result: TResult | None = func() 10:59:20 ^^^^^^ 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:20 lambda: runtest_hook(item=item, **kwds), 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:20 return self._hookexec( 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:20 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:20 yield 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:20 return (yield) 10:59:20 ^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:20 item.session._setupstate.setup(item) 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:20 col.setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:20 super().setup() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:20 self._request._fillfixtures() 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:20 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:20 fixturedef = self._get_active_fixturedef(argname) 10:59:20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:20 fixturedef.execute(request=subrequest) 10:59:20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:20 10:59:20 self = 10:59:20 request = > 10:59:20 10:59:20 def execute(self, request: SubRequest) -> FixtureValue: 10:59:20 """Return the value of this fixture, executing it if not cached.""" 10:59:20 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:20 # This needs to be done before checking if we have a cached value, since 10:59:20 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:20 # parametrization, they finalize themselves and fixtures depending on it 10:59:20 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:20 # See #4871 10:59:20 requested_fixtures_that_should_finalize_us = [] 10:59:20 for argname in self.argnames: 10:59:20 fixturedef = request._get_active_fixturedef(argname) 10:59:20 # Saves requested fixtures in a list so we later can add our finalizer 10:59:20 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:20 # down first. This is generally handled by SetupState, but still currently 10:59:20 # needed when this fixture is not parametrized but depends on a parametrized 10:59:20 # fixture. 10:59:20 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:20 10:59:20 # Check for (and return) cached value/exception. 10:59:20 if self.cached_result is not None: 10:59:20 request_cache_key = self.cache_key(request) 10:59:20 cache_key = self.cached_result[1] 10:59:20 try: 10:59:20 # Attempt to make a normal == check: this might fail for objects 10:59:20 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:20 cache_hit = bool(request_cache_key == cache_key) 10:59:20 except (ValueError, RuntimeError): 10:59:20 # If the comparison raises, use 'is' as fallback. 10:59:20 cache_hit = request_cache_key is cache_key 10:59:20 10:59:20 if cache_hit: 10:59:20 if self.cached_result[2] is not None: 10:59:20 exc, exc_tb = self.cached_result[2] 10:59:20 raise exc.with_traceback(exc_tb) 10:59:20 else: 10:59:20 return self.cached_result[0] 10:59:20 # We have a previous but differently parametrized fixture instance 10:59:20 # so we need to tear it down before creating a new one. 10:59:20 self.finish(request) 10:59:20 assert self.cached_result is None 10:59:20 10:59:20 # Add finalizer to requested fixtures we saved previously. 10:59:20 # We make sure to do this after checking for cached value to avoid 10:59:20 # adding our finalizer multiple times. (#12135) 10:59:20 finalizer = functools.partial(self.finish, request=request) 10:59:20 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:20 parent_fixture.addfinalizer(finalizer) 10:59:20 10:59:20 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:20 # which is executed last. 10:59:20 > assert not self._finalizers 10:59:20 ^^^^^^^^^^^^^^^^^^^^ 10:59:20 E AssertionError 10:59:20 10:59:20 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:20 =========================== short test summary info ============================ 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 10:59:20 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 10:59:20 10 errors in 101.83s (0:01:41) 10:59:20 Etests190: exit 1 (102.09 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh oc pid=3742 10:59:21 EEtests190: FAIL ✖ in 1 minute 49.06 seconds 10:59:21 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:59:21 EEEEEEEEEEEEEEEEEEEEEE [100%] 10:59:23 ==================================== ERRORS ==================================== 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 10:59:23 10:59:23 cls = 10:59:23 10:59:23 @classmethod 10:59:23 def setUpClass(cls): 10:59:23 > cls.processes = test_utils.start_tpce() 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 10:59:23 transportpce_tests/1.2.1/test01_portmapping.py:33: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 def start_tpce(): 10:59:23 if 'NO_ODL_STARTUP' in os.environ: 10:59:23 print('No OpenDaylight instance to start!') 10:59:23 return [] 10:59:23 print('starting OpenDaylight...') 10:59:23 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:59:23 process = start_lighty() 10:59:23 else: 10:59:23 process = start_karaf() 10:59:23 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:59:23 print('OpenDaylight started !') 10:59:23 else: 10:59:23 print('OpenDaylight failed to start !') 10:59:23 shutdown_process(process) 10:59:23 for pid in process_list: 10:59:23 shutdown_process(pid) 10:59:23 > sys.exit(1) 10:59:23 E SystemExit: 1 10:59:23 10:59:23 transportpce_tests/common/test_utils.py:232: SystemExit 10:59:23 ---------------------------- Captured stdout setup ----------------------------- 10:59:23 starting OpenDaylight... 10:59:23 starting KARAF (karaf121) TransportPCE build... 10:59:23 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:59:23 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510afb00> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510dbc40> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f655420f740> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f6552860c20> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510dbba0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510dbb00> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510dbec0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510dbce0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510d9b20> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510b4b80> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510b4a40> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510b4b80> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510da200> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 10:59:23 10:59:23 cls = 10:59:23 func = . at 0x7f65510af9c0> 10:59:23 when = 'setup' 10:59:23 reraise = (, ) 10:59:23 10:59:23 @classmethod 10:59:23 def from_call( 10:59:23 cls, 10:59:23 func: Callable[[], TResult], 10:59:23 when: Literal["collect", "setup", "call", "teardown"], 10:59:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:23 ) -> CallInfo[TResult]: 10:59:23 """Call func, wrapping the result in a CallInfo. 10:59:23 10:59:23 :param func: 10:59:23 The function to call. Called without arguments. 10:59:23 :type func: Callable[[], _pytest.runner.TResult] 10:59:23 :param when: 10:59:23 The phase in which the function is called. 10:59:23 :param reraise: 10:59:23 Exception or exceptions that shall propagate if raised by the 10:59:23 function, instead of being wrapped in the CallInfo. 10:59:23 """ 10:59:23 excinfo = None 10:59:23 instant = timing.Instant() 10:59:23 try: 10:59:23 > result: TResult | None = func() 10:59:23 ^^^^^^ 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:23 lambda: runtest_hook(item=item, **kwds), 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:23 return self._hookexec( 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:23 yield 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:23 return (yield) 10:59:23 ^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:23 item.session._setupstate.setup(item) 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:23 col.setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:23 super().setup() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:23 self._request._fillfixtures() 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:23 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:23 fixturedef = self._get_active_fixturedef(argname) 10:59:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:23 fixturedef.execute(request=subrequest) 10:59:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:23 10:59:23 self = 10:59:23 request = > 10:59:23 10:59:23 def execute(self, request: SubRequest) -> FixtureValue: 10:59:23 """Return the value of this fixture, executing it if not cached.""" 10:59:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:23 # This needs to be done before checking if we have a cached value, since 10:59:23 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:23 # parametrization, they finalize themselves and fixtures depending on it 10:59:23 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:23 # See #4871 10:59:23 requested_fixtures_that_should_finalize_us = [] 10:59:23 for argname in self.argnames: 10:59:23 fixturedef = request._get_active_fixturedef(argname) 10:59:23 # Saves requested fixtures in a list so we later can add our finalizer 10:59:23 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:23 # down first. This is generally handled by SetupState, but still currently 10:59:23 # needed when this fixture is not parametrized but depends on a parametrized 10:59:23 # fixture. 10:59:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:23 10:59:23 # Check for (and return) cached value/exception. 10:59:23 if self.cached_result is not None: 10:59:23 request_cache_key = self.cache_key(request) 10:59:23 cache_key = self.cached_result[1] 10:59:23 try: 10:59:23 # Attempt to make a normal == check: this might fail for objects 10:59:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:23 cache_hit = bool(request_cache_key == cache_key) 10:59:23 except (ValueError, RuntimeError): 10:59:23 # If the comparison raises, use 'is' as fallback. 10:59:23 cache_hit = request_cache_key is cache_key 10:59:23 10:59:23 if cache_hit: 10:59:23 if self.cached_result[2] is not None: 10:59:23 exc, exc_tb = self.cached_result[2] 10:59:23 raise exc.with_traceback(exc_tb) 10:59:23 else: 10:59:23 return self.cached_result[0] 10:59:23 # We have a previous but differently parametrized fixture instance 10:59:23 # so we need to tear it down before creating a new one. 10:59:23 self.finish(request) 10:59:23 assert self.cached_result is None 10:59:23 10:59:23 # Add finalizer to requested fixtures we saved previously. 10:59:23 # We make sure to do this after checking for cached value to avoid 10:59:23 # adding our finalizer multiple times. (#12135) 10:59:23 finalizer = functools.partial(self.finish, request=request) 10:59:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:23 parent_fixture.addfinalizer(finalizer) 10:59:23 10:59:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:23 # which is executed last. 10:59:23 > assert not self._finalizers 10:59:23 ^^^^^^^^^^^^^^^^^^^^ 10:59:23 E AssertionError 10:59:23 10:59:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:23 =========================== short test summary info ============================ 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 10:59:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 10:59:23 21 errors in 103.99s (0:01:43) 10:59:23 tests121: exit 1 (104.25 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 1.2.1 pid=3731 10:59:23 EEEEEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 51.2 seconds 10:59:27 tests71: freeze> python -m pip freeze --all 10:59:27 EEtests71: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:59:27 tests71: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 10:59:27 using environment variables from ./karaf71.env 10:59:27 pytest -q transportpce_tests/7.1/test01_portmapping.py 10:59:28 EEE [100%] 10:59:28 ==================================== ERRORS ==================================== 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 10:59:28 10:59:28 cls = 10:59:28 10:59:28 @classmethod 10:59:28 def setUpClass(cls): 10:59:28 cls.init_failed = False 10:59:28 os.environ['JAVA_MIN_MEM'] = '1024M' 10:59:28 os.environ['JAVA_MAX_MEM'] = '4096M' 10:59:28 > cls.processes = test_utils.start_tpce() 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 10:59:28 transportpce_tests/tapi/test01_abstracted_topology.py:148: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 def start_tpce(): 10:59:28 if 'NO_ODL_STARTUP' in os.environ: 10:59:28 print('No OpenDaylight instance to start!') 10:59:28 return [] 10:59:28 print('starting OpenDaylight...') 10:59:28 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 10:59:28 process = start_lighty() 10:59:28 else: 10:59:28 process = start_karaf() 10:59:28 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 10:59:28 print('OpenDaylight started !') 10:59:28 else: 10:59:28 print('OpenDaylight failed to start !') 10:59:28 shutdown_process(process) 10:59:28 for pid in process_list: 10:59:28 shutdown_process(pid) 10:59:28 > sys.exit(1) 10:59:28 E SystemExit: 1 10:59:28 10:59:28 transportpce_tests/common/test_utils.py:232: SystemExit 10:59:28 ---------------------------- Captured stdout setup ----------------------------- 10:59:28 starting OpenDaylight... 10:59:28 starting KARAF (karaf221) TransportPCE build... 10:59:28 Pattern not found after 100 seconds! OpenDaylight failed to start ! 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad524900> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563880> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febafbb5080> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febaed23920> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad524b80> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febaed23920> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fc40> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad5618a0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fc40> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febaed23920> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad5637e0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fc40> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563240> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad562480> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563920> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fe20> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad5637e0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad561760> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fe20> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fb00> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563240> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad5616c0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad50fe20> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad561ee0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57d760> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad561ee0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57c0e0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad561ee0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57c9a0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57c220> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57d300> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57c360> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57cd60> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57d4e0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57cae0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57d580> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad563ce0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57e2a0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 10:59:28 10:59:28 cls = 10:59:28 func = . at 0x7febad57dbc0> 10:59:28 when = 'setup' 10:59:28 reraise = (, ) 10:59:28 10:59:28 @classmethod 10:59:28 def from_call( 10:59:28 cls, 10:59:28 func: Callable[[], TResult], 10:59:28 when: Literal["collect", "setup", "call", "teardown"], 10:59:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 10:59:28 ) -> CallInfo[TResult]: 10:59:28 """Call func, wrapping the result in a CallInfo. 10:59:28 10:59:28 :param func: 10:59:28 The function to call. Called without arguments. 10:59:28 :type func: Callable[[], _pytest.runner.TResult] 10:59:28 :param when: 10:59:28 The phase in which the function is called. 10:59:28 :param reraise: 10:59:28 Exception or exceptions that shall propagate if raised by the 10:59:28 function, instead of being wrapped in the CallInfo. 10:59:28 """ 10:59:28 excinfo = None 10:59:28 instant = timing.Instant() 10:59:28 try: 10:59:28 > result: TResult | None = func() 10:59:28 ^^^^^^ 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 10:59:28 lambda: runtest_hook(item=item, **kwds), 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 10:59:28 return self._hookexec( 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 10:59:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 10:59:28 yield 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 10:59:28 return (yield) 10:59:28 ^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 10:59:28 item.session._setupstate.setup(item) 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 10:59:28 col.setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 10:59:28 super().setup() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 10:59:28 self._request._fillfixtures() 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 10:59:28 item.funcargs[argname] = self.getfixturevalue(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 10:59:28 fixturedef = self._get_active_fixturedef(argname) 10:59:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 10:59:28 fixturedef.execute(request=subrequest) 10:59:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 10:59:28 10:59:28 self = 10:59:28 request = > 10:59:28 10:59:28 def execute(self, request: SubRequest) -> FixtureValue: 10:59:28 """Return the value of this fixture, executing it if not cached.""" 10:59:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 10:59:28 # This needs to be done before checking if we have a cached value, since 10:59:28 # if a dependent fixture has their cache invalidated, e.g. due to 10:59:28 # parametrization, they finalize themselves and fixtures depending on it 10:59:28 # (which will likely include this fixture) setting `self.cached_result = None`. 10:59:28 # See #4871 10:59:28 requested_fixtures_that_should_finalize_us = [] 10:59:28 for argname in self.argnames: 10:59:28 fixturedef = request._get_active_fixturedef(argname) 10:59:28 # Saves requested fixtures in a list so we later can add our finalizer 10:59:28 # to them, ensuring that if a requested fixture gets torn down we get torn 10:59:28 # down first. This is generally handled by SetupState, but still currently 10:59:28 # needed when this fixture is not parametrized but depends on a parametrized 10:59:28 # fixture. 10:59:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 10:59:28 10:59:28 # Check for (and return) cached value/exception. 10:59:28 if self.cached_result is not None: 10:59:28 request_cache_key = self.cache_key(request) 10:59:28 cache_key = self.cached_result[1] 10:59:28 try: 10:59:28 # Attempt to make a normal == check: this might fail for objects 10:59:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 10:59:28 cache_hit = bool(request_cache_key == cache_key) 10:59:28 except (ValueError, RuntimeError): 10:59:28 # If the comparison raises, use 'is' as fallback. 10:59:28 cache_hit = request_cache_key is cache_key 10:59:28 10:59:28 if cache_hit: 10:59:28 if self.cached_result[2] is not None: 10:59:28 exc, exc_tb = self.cached_result[2] 10:59:28 raise exc.with_traceback(exc_tb) 10:59:28 else: 10:59:28 return self.cached_result[0] 10:59:28 # We have a previous but differently parametrized fixture instance 10:59:28 # so we need to tear it down before creating a new one. 10:59:28 self.finish(request) 10:59:28 assert self.cached_result is None 10:59:28 10:59:28 # Add finalizer to requested fixtures we saved previously. 10:59:28 # We make sure to do this after checking for cached value to avoid 10:59:28 # adding our finalizer multiple times. (#12135) 10:59:28 finalizer = functools.partial(self.finish, request=request) 10:59:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 10:59:28 parent_fixture.addfinalizer(finalizer) 10:59:28 10:59:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 10:59:28 # which is executed last. 10:59:28 > assert not self._finalizers 10:59:28 ^^^^^^^^^^^^^^^^^^^^ 10:59:28 E AssertionError 10:59:28 10:59:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 10:59:28 =========================== short test summary info ============================ 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 10:59:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 10:59:28 51 errors in 109.35s (0:01:49) 10:59:28 tests_tapi: exit 1 (109.61 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh tapi pid=3720 10:59:28 tests_tapi: FAIL ✖ in 1 minute 56.54 seconds 10:59:28 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 10:59:34 tests221: freeze> python -m pip freeze --all 10:59:34 tests221: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 10:59:34 tests221: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 10:59:34 using environment variables from ./karaf221.env 10:59:34 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 11:01:08 EEEEEEEEEEEE [100%] 11:01:10 ==================================== ERRORS ==================================== 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 11:01:10 11:01:10 cls = 11:01:10 11:01:10 @classmethod 11:01:10 def setUpClass(cls): 11:01:10 > cls.processes = test_utils.start_tpce() 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 11:01:10 transportpce_tests/7.1/test01_portmapping.py:32: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 def start_tpce(): 11:01:10 if 'NO_ODL_STARTUP' in os.environ: 11:01:10 print('No OpenDaylight instance to start!') 11:01:10 return [] 11:01:10 print('starting OpenDaylight...') 11:01:10 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:01:10 process = start_lighty() 11:01:10 else: 11:01:10 process = start_karaf() 11:01:10 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:01:10 print('OpenDaylight started !') 11:01:10 else: 11:01:10 print('OpenDaylight failed to start !') 11:01:10 shutdown_process(process) 11:01:10 for pid in process_list: 11:01:10 shutdown_process(pid) 11:01:10 > sys.exit(1) 11:01:10 E SystemExit: 1 11:01:10 11:01:10 transportpce_tests/common/test_utils.py:232: SystemExit 11:01:10 ---------------------------- Captured stdout setup ----------------------------- 11:01:10 starting OpenDaylight... 11:01:10 starting KARAF (karaf71) TransportPCE build... 11:01:10 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff9527d91c0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff9528036a0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff954ec4e00> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff953f914e0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff9527d99e0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff953f914e0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff952802980> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff952802c00> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff953f914e0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff952803560> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 11:01:10 11:01:10 cls = 11:01:10 func = . at 0x7ff953f914e0> 11:01:10 when = 'setup' 11:01:10 reraise = (, ) 11:01:10 11:01:10 @classmethod 11:01:10 def from_call( 11:01:10 cls, 11:01:10 func: Callable[[], TResult], 11:01:10 when: Literal["collect", "setup", "call", "teardown"], 11:01:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:10 ) -> CallInfo[TResult]: 11:01:10 """Call func, wrapping the result in a CallInfo. 11:01:10 11:01:10 :param func: 11:01:10 The function to call. Called without arguments. 11:01:10 :type func: Callable[[], _pytest.runner.TResult] 11:01:10 :param when: 11:01:10 The phase in which the function is called. 11:01:10 :param reraise: 11:01:10 Exception or exceptions that shall propagate if raised by the 11:01:10 function, instead of being wrapped in the CallInfo. 11:01:10 """ 11:01:10 excinfo = None 11:01:10 instant = timing.Instant() 11:01:10 try: 11:01:10 > result: TResult | None = func() 11:01:10 ^^^^^^ 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:10 lambda: runtest_hook(item=item, **kwds), 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:10 return self._hookexec( 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:10 yield 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:10 return (yield) 11:01:10 ^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:10 item.session._setupstate.setup(item) 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:10 col.setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:10 super().setup() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:10 self._request._fillfixtures() 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:10 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:10 fixturedef = self._get_active_fixturedef(argname) 11:01:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:10 fixturedef.execute(request=subrequest) 11:01:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:10 11:01:10 self = 11:01:10 request = > 11:01:10 11:01:10 def execute(self, request: SubRequest) -> FixtureValue: 11:01:10 """Return the value of this fixture, executing it if not cached.""" 11:01:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:10 # This needs to be done before checking if we have a cached value, since 11:01:10 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:10 # parametrization, they finalize themselves and fixtures depending on it 11:01:10 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:10 # See #4871 11:01:10 requested_fixtures_that_should_finalize_us = [] 11:01:10 for argname in self.argnames: 11:01:10 fixturedef = request._get_active_fixturedef(argname) 11:01:10 # Saves requested fixtures in a list so we later can add our finalizer 11:01:10 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:10 # down first. This is generally handled by SetupState, but still currently 11:01:10 # needed when this fixture is not parametrized but depends on a parametrized 11:01:10 # fixture. 11:01:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:10 11:01:10 # Check for (and return) cached value/exception. 11:01:10 if self.cached_result is not None: 11:01:10 request_cache_key = self.cache_key(request) 11:01:10 cache_key = self.cached_result[1] 11:01:10 try: 11:01:10 # Attempt to make a normal == check: this might fail for objects 11:01:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:10 cache_hit = bool(request_cache_key == cache_key) 11:01:10 except (ValueError, RuntimeError): 11:01:10 # If the comparison raises, use 'is' as fallback. 11:01:10 cache_hit = request_cache_key is cache_key 11:01:10 11:01:10 if cache_hit: 11:01:10 if self.cached_result[2] is not None: 11:01:10 exc, exc_tb = self.cached_result[2] 11:01:10 raise exc.with_traceback(exc_tb) 11:01:10 else: 11:01:10 return self.cached_result[0] 11:01:10 # We have a previous but differently parametrized fixture instance 11:01:10 # so we need to tear it down before creating a new one. 11:01:10 self.finish(request) 11:01:10 assert self.cached_result is None 11:01:10 11:01:10 # Add finalizer to requested fixtures we saved previously. 11:01:10 # We make sure to do this after checking for cached value to avoid 11:01:10 # adding our finalizer multiple times. (#12135) 11:01:10 finalizer = functools.partial(self.finish, request=request) 11:01:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:10 parent_fixture.addfinalizer(finalizer) 11:01:10 11:01:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:10 # which is executed last. 11:01:10 > assert not self._finalizers 11:01:10 ^^^^^^^^^^^^^^^^^^^^ 11:01:10 E AssertionError 11:01:10 11:01:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:10 =========================== short test summary info ============================ 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 11:01:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 11:01:10 12 errors in 102.32s (0:01:42) 11:01:10 tests71: exit 1 (102.61 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 7.1 pid=3879 11:01:15 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 11:01:21 ==================================== ERRORS ==================================== 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 11:01:21 11:01:21 cls = 11:01:21 11:01:21 @classmethod 11:01:21 def setUpClass(cls): 11:01:21 > cls.processes = test_utils.start_tpce() 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 11:01:21 transportpce_tests/2.2.1/test01_portmapping.py:33: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 def start_tpce(): 11:01:21 if 'NO_ODL_STARTUP' in os.environ: 11:01:21 print('No OpenDaylight instance to start!') 11:01:21 return [] 11:01:21 print('starting OpenDaylight...') 11:01:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:01:21 process = start_lighty() 11:01:21 else: 11:01:21 process = start_karaf() 11:01:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:01:21 print('OpenDaylight started !') 11:01:21 else: 11:01:21 print('OpenDaylight failed to start !') 11:01:21 shutdown_process(process) 11:01:21 for pid in process_list: 11:01:21 shutdown_process(pid) 11:01:21 > sys.exit(1) 11:01:21 E SystemExit: 1 11:01:21 11:01:21 transportpce_tests/common/test_utils.py:232: SystemExit 11:01:21 ---------------------------- Captured stdout setup ----------------------------- 11:01:21 starting OpenDaylight... 11:01:21 starting KARAF (karaf221) TransportPCE build... 11:01:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:01:21 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9478a520> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947bb100> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef95f74860> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477ff60> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477fd80> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477ff60> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947bb240> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477fd80> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947bb380> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947bb240> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477ff60> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477fd80> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947bb880> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947bb420> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94789300> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947891c0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9477ff60> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947891c0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94619300> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef947891c0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9461a660> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94619a80> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94619260> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9461a7a0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94618040> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9461a3e0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef9461b600> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 11:01:21 11:01:21 cls = 11:01:21 func = . at 0x7fef94788fe0> 11:01:21 when = 'setup' 11:01:21 reraise = (, ) 11:01:21 11:01:21 @classmethod 11:01:21 def from_call( 11:01:21 cls, 11:01:21 func: Callable[[], TResult], 11:01:21 when: Literal["collect", "setup", "call", "teardown"], 11:01:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:01:21 ) -> CallInfo[TResult]: 11:01:21 """Call func, wrapping the result in a CallInfo. 11:01:21 11:01:21 :param func: 11:01:21 The function to call. Called without arguments. 11:01:21 :type func: Callable[[], _pytest.runner.TResult] 11:01:21 :param when: 11:01:21 The phase in which the function is called. 11:01:21 :param reraise: 11:01:21 Exception or exceptions that shall propagate if raised by the 11:01:21 function, instead of being wrapped in the CallInfo. 11:01:21 """ 11:01:21 excinfo = None 11:01:21 instant = timing.Instant() 11:01:21 try: 11:01:21 > result: TResult | None = func() 11:01:21 ^^^^^^ 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:01:21 lambda: runtest_hook(item=item, **kwds), 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:01:21 return self._hookexec( 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:01:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:01:21 yield 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:01:21 return (yield) 11:01:21 ^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:01:21 item.session._setupstate.setup(item) 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:01:21 col.setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:01:21 super().setup() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:01:21 self._request._fillfixtures() 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:01:21 item.funcargs[argname] = self.getfixturevalue(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:01:21 fixturedef = self._get_active_fixturedef(argname) 11:01:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:01:21 fixturedef.execute(request=subrequest) 11:01:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:01:21 11:01:21 self = 11:01:21 request = > 11:01:21 11:01:21 def execute(self, request: SubRequest) -> FixtureValue: 11:01:21 """Return the value of this fixture, executing it if not cached.""" 11:01:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:01:21 # This needs to be done before checking if we have a cached value, since 11:01:21 # if a dependent fixture has their cache invalidated, e.g. due to 11:01:21 # parametrization, they finalize themselves and fixtures depending on it 11:01:21 # (which will likely include this fixture) setting `self.cached_result = None`. 11:01:21 # See #4871 11:01:21 requested_fixtures_that_should_finalize_us = [] 11:01:21 for argname in self.argnames: 11:01:21 fixturedef = request._get_active_fixturedef(argname) 11:01:21 # Saves requested fixtures in a list so we later can add our finalizer 11:01:21 # to them, ensuring that if a requested fixture gets torn down we get torn 11:01:21 # down first. This is generally handled by SetupState, but still currently 11:01:21 # needed when this fixture is not parametrized but depends on a parametrized 11:01:21 # fixture. 11:01:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:01:21 11:01:21 # Check for (and return) cached value/exception. 11:01:21 if self.cached_result is not None: 11:01:21 request_cache_key = self.cache_key(request) 11:01:21 cache_key = self.cached_result[1] 11:01:21 try: 11:01:21 # Attempt to make a normal == check: this might fail for objects 11:01:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:01:21 cache_hit = bool(request_cache_key == cache_key) 11:01:21 except (ValueError, RuntimeError): 11:01:21 # If the comparison raises, use 'is' as fallback. 11:01:21 cache_hit = request_cache_key is cache_key 11:01:21 11:01:21 if cache_hit: 11:01:21 if self.cached_result[2] is not None: 11:01:21 exc, exc_tb = self.cached_result[2] 11:01:21 raise exc.with_traceback(exc_tb) 11:01:21 else: 11:01:21 return self.cached_result[0] 11:01:21 # We have a previous but differently parametrized fixture instance 11:01:21 # so we need to tear it down before creating a new one. 11:01:21 self.finish(request) 11:01:21 assert self.cached_result is None 11:01:21 11:01:21 # Add finalizer to requested fixtures we saved previously. 11:01:21 # We make sure to do this after checking for cached value to avoid 11:01:21 # adding our finalizer multiple times. (#12135) 11:01:21 finalizer = functools.partial(self.finish, request=request) 11:01:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:01:21 parent_fixture.addfinalizer(finalizer) 11:01:21 11:01:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:01:21 # which is executed last. 11:01:21 > assert not self._finalizers 11:01:21 ^^^^^^^^^^^^^^^^^^^^ 11:01:21 E AssertionError 11:01:21 11:01:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:01:21 =========================== short test summary info ============================ 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 11:01:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 11:01:21 35 errors in 106.47s (0:01:46) 11:01:21 tests71: FAIL ✖ in 1 minute 49.49 seconds 11:01:21 tests221: exit 1 (106.75 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh 2.2.1 pid=3943 11:01:21 tests221: FAIL ✖ in 1 minute 53.11 seconds 11:01:21 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-titanium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-titanium/tests/test-requirements.txt 11:01:27 tests_hybrid: freeze> python -m pip freeze --all 11:01:28 tests_hybrid: bcrypt==5.0.0,certifi==2026.10.19,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.1.0,pip==26.2.2,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 11:01:28 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid 11:01:28 using environment variables from ./karaf221.env 11:01:28 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 11:03:08 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 11:03:17 ==================================== ERRORS ==================================== 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 11:03:17 11:03:17 cls = 11:03:17 11:03:17 @classmethod 11:03:17 def setUpClass(cls): 11:03:17 > cls.processes = test_utils.start_tpce() 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 11:03:17 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 def start_tpce(): 11:03:17 if 'NO_ODL_STARTUP' in os.environ: 11:03:17 print('No OpenDaylight instance to start!') 11:03:17 return [] 11:03:17 print('starting OpenDaylight...') 11:03:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 11:03:17 process = start_lighty() 11:03:17 else: 11:03:17 process = start_karaf() 11:03:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 11:03:17 print('OpenDaylight started !') 11:03:17 else: 11:03:17 print('OpenDaylight failed to start !') 11:03:17 shutdown_process(process) 11:03:17 for pid in process_list: 11:03:17 shutdown_process(pid) 11:03:17 > sys.exit(1) 11:03:17 E SystemExit: 1 11:03:17 11:03:17 transportpce_tests/common/test_utils.py:232: SystemExit 11:03:17 ---------------------------- Captured stdout setup ----------------------------- 11:03:17 starting OpenDaylight... 11:03:17 starting KARAF (karaf221) TransportPCE build... 11:03:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613ec0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865fa60> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce9e33ba0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8612a20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865efc0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdcead0d580> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865efc0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865f4c0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613ec0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdcead0d580> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865f4c0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613ec0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865efc0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865f4c0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613240> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865f240> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613240> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613ec0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce8613ec0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865f240> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c28e0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865efc0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c28e0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c1a80> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c1a80> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c2520> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c2de0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c2020> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c2fc0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c2020> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c31a0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c31a0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c1da0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c34c0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c3560> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c36a0> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c2f20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce83c3880> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 11:03:17 11:03:17 cls = 11:03:17 func = . at 0x7fdce865ef20> 11:03:17 when = 'setup' 11:03:17 reraise = (, ) 11:03:17 11:03:17 @classmethod 11:03:17 def from_call( 11:03:17 cls, 11:03:17 func: Callable[[], TResult], 11:03:17 when: Literal["collect", "setup", "call", "teardown"], 11:03:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 11:03:17 ) -> CallInfo[TResult]: 11:03:17 """Call func, wrapping the result in a CallInfo. 11:03:17 11:03:17 :param func: 11:03:17 The function to call. Called without arguments. 11:03:17 :type func: Callable[[], _pytest.runner.TResult] 11:03:17 :param when: 11:03:17 The phase in which the function is called. 11:03:17 :param reraise: 11:03:17 Exception or exceptions that shall propagate if raised by the 11:03:17 function, instead of being wrapped in the CallInfo. 11:03:17 """ 11:03:17 excinfo = None 11:03:17 instant = timing.Instant() 11:03:17 try: 11:03:17 > result: TResult | None = func() 11:03:17 ^^^^^^ 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 11:03:17 lambda: runtest_hook(item=item, **kwds), 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 11:03:17 return self._hookexec( 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 11:03:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 11:03:17 yield 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 11:03:17 return (yield) 11:03:17 ^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 11:03:17 item.session._setupstate.setup(item) 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 11:03:17 col.setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 11:03:17 super().setup() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 11:03:17 self._request._fillfixtures() 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 11:03:17 item.funcargs[argname] = self.getfixturevalue(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 11:03:17 fixturedef = self._get_active_fixturedef(argname) 11:03:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 11:03:17 fixturedef.execute(request=subrequest) 11:03:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 11:03:17 11:03:17 self = 11:03:17 request = > 11:03:17 11:03:17 def execute(self, request: SubRequest) -> FixtureValue: 11:03:17 """Return the value of this fixture, executing it if not cached.""" 11:03:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 11:03:17 # This needs to be done before checking if we have a cached value, since 11:03:17 # if a dependent fixture has their cache invalidated, e.g. due to 11:03:17 # parametrization, they finalize themselves and fixtures depending on it 11:03:17 # (which will likely include this fixture) setting `self.cached_result = None`. 11:03:17 # See #4871 11:03:17 requested_fixtures_that_should_finalize_us = [] 11:03:17 for argname in self.argnames: 11:03:17 fixturedef = request._get_active_fixturedef(argname) 11:03:17 # Saves requested fixtures in a list so we later can add our finalizer 11:03:17 # to them, ensuring that if a requested fixture gets torn down we get torn 11:03:17 # down first. This is generally handled by SetupState, but still currently 11:03:17 # needed when this fixture is not parametrized but depends on a parametrized 11:03:17 # fixture. 11:03:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 11:03:17 11:03:17 # Check for (and return) cached value/exception. 11:03:17 if self.cached_result is not None: 11:03:17 request_cache_key = self.cache_key(request) 11:03:17 cache_key = self.cached_result[1] 11:03:17 try: 11:03:17 # Attempt to make a normal == check: this might fail for objects 11:03:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 11:03:17 cache_hit = bool(request_cache_key == cache_key) 11:03:17 except (ValueError, RuntimeError): 11:03:17 # If the comparison raises, use 'is' as fallback. 11:03:17 cache_hit = request_cache_key is cache_key 11:03:17 11:03:17 if cache_hit: 11:03:17 if self.cached_result[2] is not None: 11:03:17 exc, exc_tb = self.cached_result[2] 11:03:17 raise exc.with_traceback(exc_tb) 11:03:17 else: 11:03:17 return self.cached_result[0] 11:03:17 # We have a previous but differently parametrized fixture instance 11:03:17 # so we need to tear it down before creating a new one. 11:03:17 self.finish(request) 11:03:17 assert self.cached_result is None 11:03:17 11:03:17 # Add finalizer to requested fixtures we saved previously. 11:03:17 # We make sure to do this after checking for cached value to avoid 11:03:17 # adding our finalizer multiple times. (#12135) 11:03:17 finalizer = functools.partial(self.finish, request=request) 11:03:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 11:03:17 parent_fixture.addfinalizer(finalizer) 11:03:17 11:03:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 11:03:17 # which is executed last. 11:03:17 > assert not self._finalizers 11:03:17 ^^^^^^^^^^^^^^^^^^^^ 11:03:17 E AssertionError 11:03:17 11:03:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 11:03:17 =========================== short test summary info ============================ 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 11:03:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 11:03:17 51 errors in 109.55s (0:01:49) 11:03:17 tests_hybrid: exit 1 (109.84 seconds) /w/workspace/transportpce-tox-verify-titanium/tests> ./launch_tests.sh hybrid pid=4066 11:03:17 buildcontroller: FAIL code 1 (9.17=setup[8.57]+cmd[0.60] seconds) 11:03:17 sims: OK (11.09=setup[8.41]+cmd[2.68] seconds) 11:03:17 build_karaf_tests121: FAIL code 127 (7.00=setup[6.99]+cmd[0.00] seconds) 11:03:17 testsPCE: FAIL code 1 (170.83=setup[46.75]+cmd[124.08] seconds) 11:03:17 tests121: FAIL code 1 (111.20=setup[6.95]+cmd[104.25] seconds) 11:03:17 build_karaf_tests221: FAIL code 127 (6.76=setup[6.75]+cmd[0.01] seconds) 11:03:17 tests_tapi: FAIL code 1 (116.54=setup[6.93]+cmd[109.61] seconds) 11:03:17 tests221: FAIL code 1 (113.11=setup[6.35]+cmd[106.75] seconds) 11:03:17 build_karaf_tests71: FAIL code 127 (7.72=setup[7.72]+cmd[0.01] seconds) 11:03:17 tests71: FAIL code 1 (109.48=setup[6.87]+cmd[102.61] seconds) 11:03:17 build_karaf_tests190: FAIL code 127 (7.01=setup[6.94]+cmd[0.07] seconds) 11:03:17 tests190: FAIL code 1 (109.06=setup[6.97]+cmd[102.09] seconds) 11:03:17 tests_hybrid: FAIL code 1 (116.26=setup[6.42]+cmd[109.84] seconds) 11:03:17 buildlighty: FAIL code 9 (8.44=setup[8.43]+cmd[0.01] seconds) 11:03:17 docs: OK (16.88=setup[14.75]+cmd[2.13] seconds) 11:03:17 docs-linkcheck: OK (17.93=setup[14.80]+cmd[3.13] seconds) 11:03:17 checkbashisms: OK (3.44=setup[2.21]+cmd[0.00,0.04,1.19] seconds) 11:03:17 pre-commit: OK (39.74=setup[3.09]+cmd[0.00,0.00,29.87,6.77] seconds) 11:03:17 pylint: FAIL code 1 (21.95=setup[3.80]+cmd[18.15] seconds) 11:03:17 evaluation failed :( (548.49 seconds) 11:03:17 + tox_status=1 11:03:17 + echo '---> Completed tox runs' 11:03:17 ---> Completed tox runs 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/build_karaf_tests121/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=build_karaf_tests121 11:03:17 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests121 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/build_karaf_tests190/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=build_karaf_tests190 11:03:17 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests190 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/build_karaf_tests221/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=build_karaf_tests221 11:03:17 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests221 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/build_karaf_tests71/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=build_karaf_tests71 11:03:17 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/build_karaf_tests71 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/buildcontroller/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=buildcontroller 11:03:17 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildcontroller 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/buildlighty/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=buildlighty 11:03:17 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/buildlighty 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/checkbashisms/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=checkbashisms 11:03:17 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/checkbashisms 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/docs-linkcheck/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=docs-linkcheck 11:03:17 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs-linkcheck 11:03:17 + for i in .tox/*/log 11:03:17 ++ echo .tox/docs/log 11:03:17 ++ awk -F/ '{print $2}' 11:03:17 + tox_env=docs 11:03:17 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/docs 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/pre-commit/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=pre-commit 11:03:18 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pre-commit 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/pylint/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=pylint 11:03:18 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/pylint 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/sims/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=sims 11:03:18 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/sims 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/tests121/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=tests121 11:03:18 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests121 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/tests190/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=tests190 11:03:18 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests190 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/tests221/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=tests221 11:03:18 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests221 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/tests71/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=tests71 11:03:18 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests71 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/testsPCE/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=testsPCE 11:03:18 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/testsPCE 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/tests_hybrid/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=tests_hybrid 11:03:18 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_hybrid 11:03:18 + for i in .tox/*/log 11:03:18 ++ echo .tox/tests_tapi/log 11:03:18 ++ awk -F/ '{print $2}' 11:03:18 + tox_env=tests_tapi 11:03:18 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-titanium/archives/tox/tests_tapi 11:03:18 + DOC_DIR=docs/_build/html 11:03:18 + [[ -d docs/_build/html ]] 11:03:18 + echo '---> Archiving generated docs' 11:03:18 ---> Archiving generated docs 11:03:18 + mv docs/_build/html /w/workspace/transportpce-tox-verify-titanium/archives/docs 11:03:18 + echo '---> tox-run.sh ends' 11:03:18 ---> tox-run.sh ends 11:03:18 + test 1 -eq 0 11:03:18 + exit 1 11:03:18 ++ '[' 1 = 1 ']' 11:03:18 ++ '[' -x /usr/bin/clear_console ']' 11:03:18 ++ /usr/bin/clear_console -q 11:03:18 Build step 'Execute shell' marked build as failure 11:03:18 $ ssh-agent -k 11:03:18 unset SSH_AUTH_SOCK; 11:03:18 unset SSH_AGENT_PID; 11:03:18 echo Agent pid 1580 killed; 11:03:18 [ssh-agent] Stopped. 11:03:18 [PostBuildScript] - [INFO] Executing post build scripts. 11:03:18 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins488839736088183292.sh 11:03:18 ---> sysstat.sh 11:03:18 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins1525223388307500530.sh 11:03:18 ---> package-listing.sh 11:03:18 + '[' -f /etc/os-release ']' 11:03:18 + . /etc/os-release 11:03:18 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 11:03:18 ++ NAME=Ubuntu 11:03:18 ++ VERSION_ID=22.04 11:03:18 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 11:03:18 ++ VERSION_CODENAME=jammy 11:03:18 ++ ID=ubuntu 11:03:18 ++ ID_LIKE=debian 11:03:18 ++ HOME_URL=https://www.ubuntu.com/ 11:03:18 ++ SUPPORT_URL=https://help.ubuntu.com/ 11:03:18 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 11:03:18 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 11:03:18 ++ UBUNTU_CODENAME=jammy 11:03:18 + case " ${ID:-} ${ID_LIKE:-} " in 11:03:18 + OS_FAMILY=debian 11:03:18 + workspace=/w/workspace/transportpce-tox-verify-titanium 11:03:18 + START_PACKAGES=/tmp/packages_start.txt 11:03:18 + END_PACKAGES=/tmp/packages_end.txt 11:03:18 + DIFF_PACKAGES=/tmp/packages_diff.txt 11:03:18 + PACKAGES=/tmp/packages_start.txt 11:03:18 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 11:03:18 + PACKAGES=/tmp/packages_end.txt 11:03:18 + case "${OS_FAMILY}" in 11:03:18 + dpkg -l 11:03:18 + grep '^ii' 11:03:18 + '[' -f /tmp/packages_start.txt ']' 11:03:18 + '[' -f /tmp/packages_end.txt ']' 11:03:18 + diff /tmp/packages_start.txt /tmp/packages_end.txt 11:03:18 + '[' /w/workspace/transportpce-tox-verify-titanium ']' 11:03:18 + mkdir -p /w/workspace/transportpce-tox-verify-titanium/archives/ 11:03:18 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-titanium/archives/ 11:03:18 + exit 0 11:03:18 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins1088517590057826946.sh 11:03:18 ---> capture-instance-metadata.sh 11:03:18 Setup pyenv: 11:03:18 system 11:03:18 3.8.20 11:03:18 3.9.20 11:03:18 3.10.15 11:03:18 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 11:03:18 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XrQ3 from file:/tmp/.os_lf_venv 11:03:18 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:03:20 lf-activate-venv(): INFO: Installing additional packages: lftools 11:03:30 lf-activate-venv(): INFO: Adding /tmp/venv-XrQ3/bin to PATH 11:03:30 INFO: Running in OpenStack, capturing instance metadata 11:03:30 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins13861641111804045286.sh 11:03:30 provisioning config files... 11:03:31 Could not find credentials [logs] for transportpce-tox-verify-titanium #55 11:03:31 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-titanium@tmp/config2230963749052825616tmp 11:03:31 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 11:03:31 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 11:03:31 provisioning config files... 11:03:31 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 11:03:31 [EnvInject] - Injecting environment variables from a build step. 11:03:31 [EnvInject] - Injecting as environment variables the properties content 11:03:31 SERVER_ID=logs 11:03:31 11:03:31 [EnvInject] - Variables injected successfully. 11:03:31 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins1154876136455960568.sh 11:03:31 ---> create-netrc.sh 11:03:31 WARN: Log server credential not found. 11:03:31 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins16736084286611842040.sh 11:03:31 ---> python-tools-install.sh 11:03:31 Setup pyenv: 11:03:31 system 11:03:31 3.8.20 11:03:31 3.9.20 11:03:31 3.10.15 11:03:31 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 11:03:31 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XrQ3 from file:/tmp/.os_lf_venv 11:03:31 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:03:33 lf-activate-venv(): INFO: Installing additional packages: lftools 11:03:43 lf-activate-venv(): INFO: Adding /tmp/venv-XrQ3/bin to PATH 11:03:43 [transportpce-tox-verify-titanium] $ /bin/sh /tmp/jenkins90809262061623821.sh 11:03:43 ---> uv-install.sh 11:03:43 uv 0.13.5 is already installed 11:03:43 uvx 0.13.5 (x86_64-unknown-linux-gnu) 11:03:43 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins5513630244822175669.sh 11:03:43 ---> sudo-logs.sh 11:03:43 Archiving 'sudo' log.. 11:03:43 [transportpce-tox-verify-titanium] $ /bin/bash /tmp/jenkins4042967621669417282.sh 11:03:43 ---> job-cost.sh 11:03:43 INFO: Activating Python virtual environment... 11:03:43 Setup pyenv: 11:03:43 system 11:03:43 3.8.20 11:03:43 3.9.20 11:03:43 3.10.15 11:03:43 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 11:03:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XrQ3 from file:/tmp/.os_lf_venv 11:03:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:03:45 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 11:03:51 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. 11:03:51 botocore 1.43.118 requires python-dateutil<3.0.0,>=2.1, but you have python-dateutil 3.0.0 which is incompatible. 11:03:51 lf-activate-venv(): INFO: Adding /tmp/venv-XrQ3/bin to PATH 11:03:51 INFO: No stack-cost file found 11:03:51 INFO: Instance uptime: 727s 11:03:51 INFO: Fetching instance metadata (attempt 1 of 3)... 11:03:51 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 11:03:51 INFO: Successfully fetched instance metadata 11:03:51 INFO: Instance type: v3-standard-4 11:03:51 INFO: Retrieving pricing info for: v3-standard-4 11:03:51 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 11:03:51 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=727 11:03:52 INFO: Successfully fetched Vexxhost pricing API 11:03:52 INFO: Retrieved cost: 0.11 11:03:52 INFO: Retrieved resource: v3-standard-4 11:03:52 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-titanium/archives/cost 11:03:52 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-titanium/archives/cost.csv 11:03:52 INFO: Successfully archived job cost data 11:03:52 DEBUG: Cost data: transportpce-tox-verify-titanium,55,2026-10-23 11:03:52,v3-standard-4,727,0.11,0.00,FAILURE 11:03:52 [transportpce-tox-verify-titanium] $ /bin/bash -l /tmp/jenkins3124549970489857570.sh 11:03:52 ---> logs-deploy.sh 11:03:52 Setup pyenv: 11:03:52 system 11:03:52 3.8.20 11:03:52 3.9.20 11:03:52 3.10.15 11:03:52 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-titanium/.python-version) 11:03:52 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XrQ3 from file:/tmp/.os_lf_venv 11:03:52 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 11:03:54 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 11:04:04 lf-activate-venv(): INFO: Adding /tmp/venv-XrQ3/bin to PATH 11:04:04 WARNING: Nexus logging server not set 11:04:04 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-titanium/55/ 11:04:04 INFO: archiving logs to S3 11:04:05 ---> uname -a: 11:04:05 Linux prd-ubuntu2204-docker-4c-16g-66437 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 11:04:05 11:04:05 11:04:05 ---> lscpu: 11:04:05 Architecture: x86_64 11:04:05 CPU op-mode(s): 32-bit, 64-bit 11:04:05 Address sizes: 40 bits physical, 48 bits virtual 11:04:05 Byte Order: Little Endian 11:04:05 CPU(s): 4 11:04:05 On-line CPU(s) list: 0-3 11:04:05 Vendor ID: AuthenticAMD 11:04:05 Model name: AMD EPYC-Rome Processor 11:04:05 CPU family: 23 11:04:05 Model: 49 11:04:05 Thread(s) per core: 1 11:04:05 Core(s) per socket: 1 11:04:05 Socket(s): 4 11:04:05 Stepping: 0 11:04:05 BogoMIPS: 5600.00 11:04:05 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 11:04:05 Virtualization: AMD-V 11:04:05 Hypervisor vendor: KVM 11:04:05 Virtualization type: full 11:04:05 L1d cache: 128 KiB (4 instances) 11:04:05 L1i cache: 128 KiB (4 instances) 11:04:05 L2 cache: 2 MiB (4 instances) 11:04:05 L3 cache: 64 MiB (4 instances) 11:04:05 NUMA node(s): 1 11:04:05 NUMA node0 CPU(s): 0-3 11:04:05 Vulnerability Gather data sampling: Not affected 11:04:05 Vulnerability Indirect target selection: Not affected 11:04:05 Vulnerability Itlb multihit: Not affected 11:04:05 Vulnerability L1tf: Not affected 11:04:05 Vulnerability Mds: Not affected 11:04:05 Vulnerability Meltdown: Not affected 11:04:05 Vulnerability Mmio stale data: Not affected 11:04:05 Vulnerability Reg file data sampling: Not affected 11:04:05 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 11:04:05 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 11:04:05 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 11:04:05 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 11:04:05 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 11:04:05 Vulnerability Srbds: Not affected 11:04:05 Vulnerability Tsa: Not affected 11:04:05 Vulnerability Tsx async abort: Not affected 11:04:05 Vulnerability Vmscape: Not affected 11:04:05 11:04:05 11:04:05 ---> nproc: 11:04:05 4 11:04:05 11:04:05 11:04:05 ---> df -h: 11:04:05 Filesystem Size Used Avail Use% Mounted on 11:04:05 tmpfs 1.6G 1.1M 1.6G 1% /run 11:04:05 /dev/vda1 78G 11G 67G 15% / 11:04:05 tmpfs 7.9G 0 7.9G 0% /dev/shm 11:04:05 tmpfs 5.0M 0 5.0M 0% /run/lock 11:04:05 /dev/vda15 105M 6.1M 99M 6% /boot/efi 11:04:05 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 11:04:05 11:04:05 11:04:05 ---> free -m: 11:04:05 total used free shared buff/cache available 11:04:05 Mem: 15989 715 9805 4 5468 14930 11:04:05 Swap: 1023 0 1023 11:04:05 11:04:05 11:04:05 ---> ip addr: 11:04:05 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 11:04:05 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 11:04:05 inet 127.0.0.1/8 scope host lo 11:04:05 valid_lft forever preferred_lft forever 11:04:05 inet6 ::1/128 scope host 11:04:05 valid_lft forever preferred_lft forever 11:04:05 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 11:04:05 link/ether fa:16:3e:09:a1:ec brd ff:ff:ff:ff:ff:ff 11:04:05 altname enp0s3 11:04:05 inet 10.30.171.244/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 11:04:05 valid_lft 85667sec preferred_lft 85667sec 11:04:05 inet6 fe80::f816:3eff:fe09:a1ec/64 scope link 11:04:05 valid_lft forever preferred_lft forever 11:04:05 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 11:04:05 link/ether d2:96:5f:bf:da:1b brd ff:ff:ff:ff:ff:ff 11:04:05 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 11:04:05 valid_lft forever preferred_lft forever 11:04:05 11:04:05 11:04:05 ---> sar -b -r -n DEV: 11:04:05 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-66437) 10/23/26 _x86_64_ (4 CPU) 11:04:05 11:04:05 10:51:56 LINUX RESTART (4 CPU) 11:04:05 11:04:05 11:04:05 ---> sar -P ALL: 11:04:05 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-66437) 10/23/26 _x86_64_ (4 CPU) 11:04:05 11:04:05 10:51:56 LINUX RESTART (4 CPU) 11:04:05 11:04:05 11:04:05