12:33:02 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/122575 12:33:02 Running as SYSTEM 12:33:02 [EnvInject] - Loading node environment variables. 12:33:03 Building remotely on prd-ubuntu2204-docker-4c-16g-33704 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 12:33:04 [ssh-agent] Looking for ssh-agent implementation... 12:33:04 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:33:04 $ ssh-agent 12:33:04 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXzt9f3I/agent.1560 12:33:04 SSH_AGENT_PID=1562 12:33:04 [ssh-agent] Started. 12:33:04 Running ssh-add (command line suppressed) 12:33:04 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_8275569202221882139.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_8275569202221882139.key) 12:33:04 [ssh-agent] Using credentials jenkins (jenkins-ssh) 12:33:04 The recommended git tool is: NONE 12:33:08 using credential jenkins-ssh 12:33:08 Wiping out workspace first. 12:33:08 Cloning the remote Git repository 12:33:08 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 12:33:08 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 12:33:08 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 12:33:08 > git --version # timeout=10 12:33:08 > git --version # 'git version 2.34.1' 12:33:08 using GIT_SSH to set credentials jenkins-ssh 12:33:08 Verifying host key using known hosts file, will automatically accept unseen keys 12:33:08 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 12:33:23 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 12:33:23 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:33:23 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 12:33:23 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 12:33:23 using GIT_SSH to set credentials jenkins-ssh 12:33:23 Verifying host key using known hosts file, will automatically accept unseen keys 12:33:23 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/75/122575/12 # timeout=10 12:33:24 > git rev-parse b85f105b11c6cb4ee90e9e15038e7fe69a06044d^{commit} # timeout=10 12:33:24 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 12:33:24 Checking out Revision b85f105b11c6cb4ee90e9e15038e7fe69a06044d (refs/changes/75/122575/12) 12:33:24 > git config core.sparsecheckout # timeout=10 12:33:24 > git checkout -f b85f105b11c6cb4ee90e9e15038e7fe69a06044d # timeout=10 12:33:24 Commit message: "Remove TAPI link state mapping helpers" 12:33:24 > git rev-parse FETCH_HEAD^{commit} # timeout=10 12:33:24 > git rev-list --no-walk 8fc2dabf2e1cee7c947515fb43a2b6e1c9181bca # timeout=10 12:33:24 > git remote # timeout=10 12:33:24 > git submodule init # timeout=10 12:33:24 > git submodule sync # timeout=10 12:33:24 > git config --get remote.origin.url # timeout=10 12:33:24 > git submodule init # timeout=10 12:33:24 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 12:33:24 ERROR: No submodules found. 12:33:28 provisioning config files... 12:33:28 copy managed file [npmrc] to file:/home/jenkins/.npmrc 12:33:28 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 12:33:28 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10184204587953818066.sh 12:33:28 ---> python-tools-install.sh 12:33:28 Setup pyenv: 12:33:28 * system (set by /opt/pyenv/version) 12:33:28 * 3.8.20 (set by /opt/pyenv/version) 12:33:28 * 3.9.20 (set by /opt/pyenv/version) 12:33:28 3.10.15 12:33:28 3.11.10 12:33:32 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-YN9N 12:33:32 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 12:33:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:33:32 lf-activate-venv(): INFO: Attempting to install with network-safe options... 12:33:37 lf-activate-venv(): INFO: Base packages installed successfully 12:33:37 lf-activate-venv(): INFO: Installing additional packages: lftools 12:34:00 lf-activate-venv(): INFO: Adding /tmp/venv-YN9N/bin to PATH 12:34:00 Generating Requirements File 12:34:25 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. 12:34:25 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 12:34:25 Python 3.11.10 12:34:26 pip 26.1.2 from /tmp/venv-YN9N/lib/python3.11/site-packages/pip (python 3.11) 12:34:26 aiohappyeyeballs==2.7.1 12:34:26 aiohttp==3.14.1 12:34:26 aiosignal==1.4.0 12:34:26 appdirs==1.4.4 12:34:26 argcomplete==3.7.0 12:34:26 aspy.yaml==1.3.0 12:34:26 attrs==26.1.0 12:34:26 autopage==0.6.0 12:34:26 beautifulsoup4==4.15.0 12:34:26 boto3==1.43.41 12:34:26 botocore==1.43.41 12:34:26 bs4==0.0.2 12:34:26 certifi==2026.6.17 12:34:26 cffi==2.1.0 12:34:26 cfgv==3.5.0 12:34:26 chardet==7.4.3 12:34:26 charset-normalizer==3.4.8 12:34:26 click==8.4.2 12:34:26 cliff==4.14.0 12:34:26 cmd2==4.0.0 12:34:26 cryptography==3.3.2 12:34:26 debtcollector==3.1.0 12:34:26 decorator==5.3.1 12:34:26 defusedxml==0.7.1 12:34:26 Deprecated==1.3.1 12:34:26 distlib==0.4.3 12:34:26 dnspython==2.8.0 12:34:26 docker==7.1.0 12:34:26 dogpile.cache==1.5.0 12:34:26 durationpy==0.10 12:34:26 email-validator==2.3.0 12:34:26 filelock==3.29.6 12:34:26 frozenlist==1.8.0 12:34:26 future==1.0.0 12:34:26 gitdb==4.0.12 12:34:26 GitPython==3.1.50 12:34:26 httplib2==0.30.2 12:34:26 identify==2.6.19 12:34:26 idna==3.18 12:34:26 importlib-resources==1.5.0 12:34:26 iso8601==2.1.0 12:34:26 Jinja2==3.1.6 12:34:26 jmespath==1.1.0 12:34:26 jsonpatch==1.33 12:34:26 jsonpointer==3.1.1 12:34:26 jsonschema==4.26.0 12:34:26 jsonschema-specifications==2025.9.1 12:34:26 keystoneauth1==5.15.0 12:34:26 kubernetes==36.0.2 12:34:26 lftools==0.37.22 12:34:26 lxml==6.1.1 12:34:26 markdown-it-py==4.2.0 12:34:26 MarkupSafe==3.0.3 12:34:26 mdurl==0.1.2 12:34:26 msgpack==1.2.1 12:34:26 multi_key_dict==2.0.3 12:34:26 multidict==6.7.1 12:34:26 munch==4.0.0 12:34:26 netaddr==1.3.0 12:34:26 niet==1.4.2 12:34:26 nodeenv==1.10.0 12:34:26 oauth2client==4.1.3 12:34:26 oauthlib==3.3.1 12:34:26 openstacksdk==4.17.0 12:34:26 os-service-types==1.8.2 12:34:26 osc-lib==4.6.0 12:34:26 oslo.config==10.5.0 12:34:26 oslo.context==6.4.0 12:34:26 oslo.i18n==6.8.0 12:34:26 oslo.log==8.2.0 12:34:26 oslo.serialization==5.10.0 12:34:26 oslo.utils==10.1.1 12:34:26 packaging==26.2 12:34:26 pbr==7.0.3 12:34:26 platformdirs==4.10.0 12:34:26 prettytable==3.18.0 12:34:26 prompt_toolkit==3.0.52 12:34:26 propcache==0.5.2 12:34:26 psutil==7.2.2 12:34:26 pyasn1==0.6.3 12:34:26 pyasn1_modules==0.4.2 12:34:26 pycparser==3.0 12:34:26 pygerrit2==2.0.15 12:34:26 PyGithub==2.9.1 12:34:26 Pygments==2.20.0 12:34:26 PyJWT==2.13.0 12:34:26 PyNaCl==1.6.2 12:34:26 pyparsing==2.4.7 12:34:26 pyperclip==1.11.0 12:34:26 pyrsistent==0.20.0 12:34:26 python-cinderclient==9.9.0 12:34:26 python-dateutil==2.9.0.post0 12:34:26 python-discovery==1.4.3 12:34:26 python-heatclient==5.2.0 12:34:26 python-jenkins==1.8.3 12:34:26 python-keystoneclient==5.8.0 12:34:26 python-magnumclient==4.11.0 12:34:26 python-openstackclient==10.1.0 12:34:26 python-swiftclient==4.10.0 12:34:26 PyYAML==6.0.3 12:34:26 referencing==0.37.0 12:34:26 requests==2.34.2 12:34:26 requests-oauthlib==2.0.0 12:34:26 rfc3986==2.0.0 12:34:26 rich==15.0.0 12:34:26 rich-argparse==1.8.0 12:34:26 rpds-py==2026.6.3 12:34:26 rsa==4.9.1 12:34:26 ruamel.yaml==0.19.1 12:34:26 ruamel.yaml.clib==0.2.15 12:34:26 s3transfer==0.19.0 12:34:26 simplejson==4.1.1 12:34:26 six==1.17.0 12:34:26 smmap==5.0.3 12:34:26 soupsieve==2.8.4 12:34:26 stevedore==5.9.0 12:34:26 tabulate==0.10.0 12:34:26 toml==0.10.2 12:34:26 tomlkit==0.15.0 12:34:26 tqdm==4.68.4 12:34:26 typing_extensions==4.16.0 12:34:26 urllib3==1.26.20 12:34:26 virtualenv==21.6.0 12:34:26 wcwidth==0.8.2 12:34:26 websocket-client==1.9.0 12:34:26 wrapt==2.2.2 12:34:26 xdg==6.0.0 12:34:26 xmltodict==1.0.4 12:34:26 yarl==1.24.2 12:34:26 yq==4.1.1 12:34:26 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins4634271873906086200.sh 12:34:26 ---> uv-install.sh 12:34:26 Installing uv/uvx (latest) using shell installer 12:34:26 2026-07-07 12:34:26 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71233/71233] -> "/tmp/uv-install-MCm12n.sh" [1] 12:34:26 downloading uv 0.11.27 x86_64-unknown-linux-gnu 12:34:27 installing to /home/jenkins/.local/bin 12:34:27 uv 12:34:27 uvx 12:34:27 everything's installed! 12:34:27 12:34:27 To add $HOME/.local/bin to your PATH, either restart your shell or run: 12:34:27 12:34:27 source $HOME/.local/bin/env (sh, bash, zsh) 12:34:27 source $HOME/.local/bin/env.fish (fish) 12:34:27 Adding install location to PATH 12:34:27 ---> Validating uv/uvx install 12:34:27 uvx 0.11.27 (x86_64-unknown-linux-gnu) 12:34:27 [EnvInject] - Injecting environment variables from a build step. 12:34:27 [EnvInject] - Injecting as environment variables the properties content 12:34:27 PYTHON=python3 12:34:27 12:34:27 [EnvInject] - Variables injected successfully. 12:34:27 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13040750762307903684.sh 12:34:27 ---> tox-install.sh 12:34:27 + source /home/jenkins/lf-env.sh 12:34:27 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:34:27 ++ mktemp -d /tmp/venv-XXXX 12:34:27 + lf_venv=/tmp/venv-O2IO 12:34:27 + local venv_file=/tmp/.os_lf_venv 12:34:27 + local python=python3 12:34:27 + local options 12:34:27 + local set_path=true 12:34:27 + local install_args= 12:34:27 ++ 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 12:34:27 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:34:27 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:34:27 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 12:34:27 + true 12:34:27 + case $1 in 12:34:27 + venv_file=/tmp/.toxenv 12:34:27 + shift 2 12:34:27 + true 12:34:27 + case $1 in 12:34:27 + shift 12:34:27 + break 12:34:27 + case $python in 12:34:27 + local pkg_list= 12:34:27 + [[ -d /opt/pyenv ]] 12:34:27 + echo 'Setup pyenv:' 12:34:27 Setup pyenv: 12:34:27 + export PYENV_ROOT=/opt/pyenv 12:34:27 + PYENV_ROOT=/opt/pyenv 12:34:27 + 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 12:34:27 + 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 12:34:27 + pyenv versions 12:34:27 system 12:34:27 3.8.20 12:34:27 3.9.20 12:34:27 3.10.15 12:34:27 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:34:27 + command -v pyenv 12:34:27 ++ pyenv init - --no-rehash 12:34:27 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 12:34:27 for i in ${!paths[@]}; do 12:34:27 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 12:34:27 fi; done; 12:34:27 echo "${paths[*]}"'\'')" 12:34:27 export PATH="/opt/pyenv/shims:${PATH}" 12:34:27 export PYENV_SHELL=bash 12:34:27 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 12:34:27 pyenv() { 12:34:27 local command 12:34:27 command="${1:-}" 12:34:27 if [ "$#" -gt 0 ]; then 12:34:27 shift 12:34:27 fi 12:34:27 12:34:27 case "$command" in 12:34:27 rehash|shell) 12:34:27 eval "$(pyenv "sh-$command" "$@")" 12:34:27 ;; 12:34:27 *) 12:34:27 command pyenv "$command" "$@" 12:34:27 ;; 12:34:27 esac 12:34:27 }' 12:34:27 +++ bash --norc -ec 'IFS=:; paths=($PATH); 12:34:27 for i in ${!paths[@]}; do 12:34:27 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 12:34:27 fi; done; 12:34:27 echo "${paths[*]}"' 12:34:27 ++ 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 12:34:27 ++ 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 12:34:27 ++ 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 12:34:27 ++ export PYENV_SHELL=bash 12:34:27 ++ PYENV_SHELL=bash 12:34:27 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 12:34:27 +++ complete -F _pyenv pyenv 12:34:27 ++ lf-pyver python3 12:34:27 ++ local py_version_xy=python3 12:34:27 ++ local py_version_xyz= 12:34:27 ++ pyenv versions 12:34:27 ++ local command 12:34:27 ++ command=versions 12:34:27 ++ '[' 1 -gt 0 ']' 12:34:27 ++ shift 12:34:27 ++ case "$command" in 12:34:27 ++ command pyenv versions 12:34:27 ++ awk '{ print $1 }' 12:34:27 ++ grep -E '^[0-9.]*[0-9]$' 12:34:27 ++ sed 's/^[ *]* //' 12:34:28 ++ [[ ! -s /tmp/.pyenv_versions ]] 12:34:28 +++ grep '^3' /tmp/.pyenv_versions 12:34:28 +++ sort -V 12:34:28 +++ tail -n 1 12:34:28 ++ py_version_xyz=3.11.10 12:34:28 ++ [[ -z 3.11.10 ]] 12:34:28 ++ echo 3.11.10 12:34:28 ++ return 0 12:34:28 + pyenv local 3.11.10 12:34:28 + local command 12:34:28 + command=local 12:34:28 + '[' 2 -gt 0 ']' 12:34:28 + shift 12:34:28 + case "$command" in 12:34:28 + command pyenv local 3.11.10 12:34:28 + for arg in "$@" 12:34:28 + case $arg in 12:34:28 + pkg_list+='tox ' 12:34:28 + for arg in "$@" 12:34:28 + case $arg in 12:34:28 + pkg_list+='virtualenv ' 12:34:28 + for arg in "$@" 12:34:28 + case $arg in 12:34:28 + pkg_list+='urllib3~=1.26.15 ' 12:34:28 + [[ -f /tmp/.toxenv ]] 12:34:28 + [[ ! -f /tmp/.toxenv ]] 12:34:28 + [[ -n '' ]] 12:34:28 + python3 -m venv /tmp/venv-O2IO 12:34:32 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-O2IO' 12:34:32 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-O2IO 12:34:32 + echo /tmp/venv-O2IO 12:34:32 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 12:34:32 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 12:34:32 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 12:34:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:34:32 + local 'pip_opts=--upgrade --quiet' 12:34:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 12:34:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 12:34:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 12:34:32 + [[ -n '' ]] 12:34:32 + [[ -n '' ]] 12:34:32 + echo 'lf-activate-venv(): INFO: Attempting to install with network-safe options...' 12:34:32 lf-activate-venv(): INFO: Attempting to install with network-safe options... 12:34:32 + /tmp/venv-O2IO/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 12:34:35 + echo 'lf-activate-venv(): INFO: Base packages installed successfully' 12:34:35 lf-activate-venv(): INFO: Base packages installed successfully 12:34:35 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 12:34:35 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 12:34:35 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 12:34:35 + /tmp/venv-O2IO/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 12:34:37 + type python3 12:34:37 + true 12:34:37 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-O2IO/bin to PATH' 12:34:37 lf-activate-venv(): INFO: Adding /tmp/venv-O2IO/bin to PATH 12:34:37 + PATH=/tmp/venv-O2IO/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 12:34:37 + return 0 12:34:37 + python3 --version 12:34:37 Python 3.11.10 12:34:37 + python3 -m pip --version 12:34:37 pip 26.1.2 from /tmp/venv-O2IO/lib/python3.11/site-packages/pip (python 3.11) 12:34:37 + python3 -m pip freeze 12:34:38 cachetools==7.1.4 12:34:38 colorama==0.4.6 12:34:38 distlib==0.4.3 12:34:38 filelock==3.29.6 12:34:38 packaging==26.2 12:34:38 platformdirs==4.10.0 12:34:38 pluggy==1.6.0 12:34:38 pyproject-api==1.10.1 12:34:38 python-discovery==1.4.3 12:34:38 tomli_w==1.2.0 12:34:38 tox==4.56.2 12:34:38 urllib3==1.26.20 12:34:38 virtualenv==21.6.0 12:34:38 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins6959547642246511451.sh 12:34:38 [EnvInject] - Injecting environment variables from a build step. 12:34:38 [EnvInject] - Injecting as environment variables the properties content 12:34:38 PARALLEL=True 12:34:38 12:34:38 [EnvInject] - Variables injected successfully. 12:34:38 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins8869884540475227135.sh 12:34:38 ---> tox-run.sh 12:34:38 + 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 12:34:38 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 12:34:38 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 12:34:38 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 12:34:38 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 12:34:38 + source /home/jenkins/lf-env.sh 12:34:38 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:34:38 ++ mktemp -d /tmp/venv-XXXX 12:34:38 + lf_venv=/tmp/venv-a9qn 12:34:38 + local venv_file=/tmp/.os_lf_venv 12:34:38 + local python=python3 12:34:38 + local options 12:34:38 + local set_path=true 12:34:38 + local install_args= 12:34:38 ++ 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 12:34:38 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:34:38 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:34:38 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 12:34:38 + true 12:34:38 + case $1 in 12:34:38 + venv_file=/tmp/.toxenv 12:34:38 + shift 2 12:34:38 + true 12:34:38 + case $1 in 12:34:38 + shift 12:34:38 + break 12:34:38 + case $python in 12:34:38 + local pkg_list= 12:34:38 + [[ -d /opt/pyenv ]] 12:34:38 + echo 'Setup pyenv:' 12:34:38 Setup pyenv: 12:34:38 + export PYENV_ROOT=/opt/pyenv 12:34:38 + PYENV_ROOT=/opt/pyenv 12:34:38 + 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 12:34:38 + 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 12:34:38 + pyenv versions 12:34:38 system 12:34:38 3.8.20 12:34:38 3.9.20 12:34:38 3.10.15 12:34:38 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:34:38 + command -v pyenv 12:34:38 ++ pyenv init - --no-rehash 12:34:38 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 12:34:38 for i in ${!paths[@]}; do 12:34:38 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 12:34:38 fi; done; 12:34:38 echo "${paths[*]}"'\'')" 12:34:38 export PATH="/opt/pyenv/shims:${PATH}" 12:34:38 export PYENV_SHELL=bash 12:34:38 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 12:34:38 pyenv() { 12:34:38 local command 12:34:38 command="${1:-}" 12:34:38 if [ "$#" -gt 0 ]; then 12:34:38 shift 12:34:38 fi 12:34:38 12:34:38 case "$command" in 12:34:38 rehash|shell) 12:34:38 eval "$(pyenv "sh-$command" "$@")" 12:34:38 ;; 12:34:38 *) 12:34:38 command pyenv "$command" "$@" 12:34:38 ;; 12:34:38 esac 12:34:38 }' 12:34:38 +++ bash --norc -ec 'IFS=:; paths=($PATH); 12:34:38 for i in ${!paths[@]}; do 12:34:38 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 12:34:38 fi; done; 12:34:38 echo "${paths[*]}"' 12:34:38 ++ 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 12:34:38 ++ 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 12:34:38 ++ 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 12:34:38 ++ export PYENV_SHELL=bash 12:34:38 ++ PYENV_SHELL=bash 12:34:38 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 12:34:38 +++ complete -F _pyenv pyenv 12:34:38 ++ lf-pyver python3 12:34:38 ++ local py_version_xy=python3 12:34:38 ++ local py_version_xyz= 12:34:38 ++ pyenv versions 12:34:38 ++ local command 12:34:38 ++ command=versions 12:34:38 ++ '[' 1 -gt 0 ']' 12:34:38 ++ shift 12:34:38 ++ case "$command" in 12:34:38 ++ command pyenv versions 12:34:38 ++ awk '{ print $1 }' 12:34:38 ++ sed 's/^[ *]* //' 12:34:38 ++ grep -E '^[0-9.]*[0-9]$' 12:34:38 ++ [[ ! -s /tmp/.pyenv_versions ]] 12:34:38 +++ grep '^3' /tmp/.pyenv_versions 12:34:38 +++ sort -V 12:34:38 +++ tail -n 1 12:34:38 ++ py_version_xyz=3.11.10 12:34:38 ++ [[ -z 3.11.10 ]] 12:34:38 ++ echo 3.11.10 12:34:38 ++ return 0 12:34:38 + pyenv local 3.11.10 12:34:38 + local command 12:34:38 + command=local 12:34:38 + '[' 2 -gt 0 ']' 12:34:38 + shift 12:34:38 + case "$command" in 12:34:38 + command pyenv local 3.11.10 12:34:38 + for arg in "$@" 12:34:38 + case $arg in 12:34:38 + pkg_list+='tox ' 12:34:38 + for arg in "$@" 12:34:38 + case $arg in 12:34:38 + pkg_list+='virtualenv ' 12:34:38 + for arg in "$@" 12:34:38 + case $arg in 12:34:38 + pkg_list+='urllib3~=1.26.15 ' 12:34:38 + [[ -f /tmp/.toxenv ]] 12:34:38 ++ cat /tmp/.toxenv 12:34:38 + lf_venv=/tmp/venv-O2IO 12:34:38 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-O2IO from' file:/tmp/.toxenv 12:34:38 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-O2IO from file:/tmp/.toxenv 12:34:38 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 12:34:38 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:34:38 + local 'pip_opts=--upgrade --quiet' 12:34:38 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 12:34:38 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 12:34:38 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 12:34:38 + [[ -n '' ]] 12:34:38 + [[ -n '' ]] 12:34:38 + echo 'lf-activate-venv(): INFO: Attempting to install with network-safe options...' 12:34:38 lf-activate-venv(): INFO: Attempting to install with network-safe options... 12:34:38 + /tmp/venv-O2IO/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 12:34:41 + echo 'lf-activate-venv(): INFO: Base packages installed successfully' 12:34:41 lf-activate-venv(): INFO: Base packages installed successfully 12:34:41 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 12:34:41 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 12:34:41 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 12:34:41 + /tmp/venv-O2IO/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 12:34:42 + type python3 12:34:42 + true 12:34:42 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-O2IO/bin to PATH' 12:34:42 lf-activate-venv(): INFO: Adding /tmp/venv-O2IO/bin to PATH 12:34:42 + PATH=/tmp/venv-O2IO/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 12:34:42 + return 0 12:34:42 + [[ -d /opt/pyenv ]] 12:34:42 + echo '---> Setting up pyenv' 12:34:42 ---> Setting up pyenv 12:34:42 + export PYENV_ROOT=/opt/pyenv 12:34:42 + PYENV_ROOT=/opt/pyenv 12:34:42 + export PATH=/opt/pyenv/bin:/tmp/venv-O2IO/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 12:34:42 + PATH=/opt/pyenv/bin:/tmp/venv-O2IO/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 12:34:42 ++ pwd 12:34:42 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 12:34:42 + export PYTHONPATH 12:34:42 + export TOX_TESTENV_PASSENV=PYTHONPATH 12:34:42 + TOX_TESTENV_PASSENV=PYTHONPATH 12:34:42 + tox --version 12:34:42 4.56.2 from /tmp/venv-O2IO/lib/python3.11/site-packages/tox/__init__.py 12:34:42 + PARALLEL=True 12:34:42 + TOX_OPTIONS_LIST= 12:34:42 + [[ -n '' ]] 12:34:42 + case ${PARALLEL,,} in 12:34:42 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 12:34:42 + tox --parallel auto --parallel-live 12:34:42 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 12:34:44 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 12:34:44 checkbashisms: freeze> python -m pip freeze --all 12:34:44 docs: install_deps> python -I -m pip install -r docs/requirements.txt 12:34:44 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:34:44 checkbashisms: pip==26.1.2,setuptools==83.0.0 12:34:44 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 12:34:44 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 12:34:44 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 12:34:46 checkbashisms: OK ✔ in 3.3 seconds 12:34:46 pre-commit: install_deps> python -I -m pip install pre-commit 12:34:49 pre-commit: freeze> python -m pip freeze --all 12:34:49 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.29.6,identify==2.6.19,nodeenv==1.10.0,pip==26.1.2,platformdirs==4.10.0,pre_commit==4.6.0,python-discovery==1.4.3,PyYAML==6.0.3,setuptools==83.0.0,virtualenv==21.6.0 12:34:49 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 12:34:49 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 12:34:49 /usr/bin/cpan 12:34:49 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 12:34:49 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 12:34:50 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 12:34:50 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 12:34:50 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 12:34:51 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 12:34:51 buildcontroller: freeze> python -m pip freeze --all 12:34:51 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 12:34:51 buildcontroller: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:34:51 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 12:34:51 + update-java-alternatives -l 12:34:51 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 12:34:51 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 12:34:51 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 12:34:51 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 12:34:51 update-alternatives: error: no alternatives for jaotc 12:34:51 update-alternatives: error: no alternatives for rmic 12:34:52 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 12:34:52 java -version 12:34:52 + JAVA_VER=21 12:34:52 + echo 21 12:34:52 21 12:34:52 + javac -version 12:34:52 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 12:34:52 + JAVAC_VER=21 12:34:52 + echo 21 12:34:52 + [ 21 -ge 21 ] 12:34:52 + [ 21 -ge 21 ] 12:34:52 + echo ok, java is 21 or newer 12:34:52 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 12:34:52 21 12:34:52 ok, java is 21 or newer 12:34:52 2026-07-07 12:34:52 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 12:34:52 + sudo mkdir -p /opt 12:34:52 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 12:34:52 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 12:34:52 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 12:34:52 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 12:34:52 + mvn --version 12:34:52 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 12:34:52 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 12:34:52 Maven home: /opt/maven 12:34:52 Java version: 21.0.10, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 12:34:52 Default locale: en, platform encoding: UTF-8 12:34:52 OS name: "linux", version: "5.15.0-174-generic", arch: "amd64", family: "unix" 12:34:53 NOTE: Picked up JDK_JAVA_OPTIONS: 12:34:53 --add-opens=java.base/java.io=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.lang=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.net=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.nio=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.util=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:34:53 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:34:53 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:34:53 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:34:53 -Xlog:disable 12:34:53 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 12:34:54 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 12:34:54 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 12:34:54 [INFO] Once installed this environment will be reused. 12:34:54 [INFO] This may take a few minutes... 12:34:58 docs-linkcheck: freeze> python -m pip freeze --all 12:34:58 docs: freeze> python -m pip freeze --all 12:34:58 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.6.17,charset-normalizer==3.4.8,deepmerge==2.1.0,docutils==0.22.4,idna==3.18,imagesize==2.0.0,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.37.4,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.21.0,mistune==3.3.2,packaging==26.2,picobox==4.0.0,pip==26.1.2,Pygments==2.20.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==2.1.0,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==83.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.2.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.0.2,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 12:34:58 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 12:34:59 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.6.17,charset-normalizer==3.4.8,deepmerge==2.1.0,docutils==0.22.4,idna==3.18,imagesize==2.0.0,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.37.4,lfdocs_conf==0.11.0,MarkupSafe==3.0.3,minijinja==2.21.0,mistune==3.3.2,packaging==26.2,picobox==4.0.0,pip==26.1.2,Pygments==2.20.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==2.1.0,roman-numerals==4.1.0,rpds-py==2026.6.3,setuptools==83.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.2.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.0.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.0.2,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.7.0 12:34:59 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 12:35:00 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 12:35:00 [INFO] Once installed this environment will be reused. 12:35:00 [INFO] This may take a few minutes... 12:35:02 docs: OK ✔ in 19.73 seconds 12:35:02 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 12:35:05 docs-linkcheck: OK ✔ in 20.29 seconds 12:35:05 pylint: freeze> python -m pip freeze --all 12:35:05 pylint: astroid==4.0.4,dill==0.4.1,isort==8.0.1,mccabe==0.7.0,pip==26.1.2,platformdirs==4.10.0,pylint==4.0.6,setuptools==83.0.0,tomlkit==0.15.0 12:35:05 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 12:35:06 [INFO] Installing environment for https://github.com/hhatto/autopep8. 12:35:06 [INFO] Once installed this environment will be reused. 12:35:06 [INFO] This may take a few minutes... 12:35:10 [INFO] Installing environment for https://github.com/perltidy/perltidy. 12:35:10 [INFO] Once installed this environment will be reused. 12:35:10 [INFO] This may take a few minutes... 12:35:21 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 12:35:21 [INFO] Once installed this environment will be reused. 12:35:21 [INFO] This may take a few minutes... 12:35:25 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 12:35:25 [INFO] Once installed this environment will be reused. 12:35:25 [INFO] This may take a few minutes... 12:35:30 12:35:30 ------------------------------------ 12:35:30 Your code has been rated at 10.00/10 12:35:30 12:35:30 trim trailing whitespace.................................................Passed 12:35:30 fix end of files.........................................................Passed 12:35:31 check for added large files..............................................Passed 12:35:31 check for merge conflicts................................................Passed 12:35:31 check for case conflicts.................................................Passed 12:35:31 check json...............................................................Passed 12:35:32 mixed line ending........................................................Passed 12:35:32 Tabs remover.............................................................Passed 12:35:32 autopep8.................................................................Passed 12:35:35 perltidy.................................................................Passed 12:35:36 ShellCheck v0.11.0.......................................................Passed 12:35:40 prettier.................................................................Passed 12:35:41 yamllint.................................................................Passed 12:35:42 pylint: OK ✔ in 30.06 seconds 12:35:42 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 12:35:42 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 12:35:42 [INFO] Once installed this environment will be reused. 12:35:42 [INFO] This may take a few minutes... 12:35:50 gitlint..................................................................Passed 12:36:33 pre-commit: OK ✔ in 1 minute 4.63 seconds 12:36:33 buildcontroller: OK ✔ in 1 minute 49.9 seconds 12:36:33 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:36:33 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:36:33 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:36:33 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:36:39 build_karaf_tests121: freeze> python -m pip freeze --all 12:36:39 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:36:39 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:36:39 build karaf in karaf121 with ./karaf121.env 12:36:39 NOTE: Picked up JDK_JAVA_OPTIONS: 12:36:39 --add-opens=java.base/java.io=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.lang=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.net=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.nio=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.util=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:36:39 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:36:39 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:36:39 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:36:39 -Xlog:disable 12:36:39 build_karaf_tests200: freeze> python -m pip freeze --all 12:36:39 build_karaf_tests71: freeze> python -m pip freeze --all 12:36:39 build_karaf_tests221: freeze> python -m pip freeze --all 12:36:40 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:36:40 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:36:40 build karaf in karafoc200 with ./karafoc200.env 12:36:40 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:36:40 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:36:40 build karaf in karaf221 with ./karaf221.env 12:36:40 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:36:40 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:36:40 build karaf in karaf71 with ./karaf71.env 12:36:40 NOTE: Picked up JDK_JAVA_OPTIONS: 12:36:40 --add-opens=java.base/java.io=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.net=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:36:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:36:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:36:40 -Xlog:disable 12:36:40 NOTE: Picked up JDK_JAVA_OPTIONS: 12:36:40 --add-opens=java.base/java.io=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.net=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:36:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:36:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:36:40 -Xlog:disable 12:36:40 NOTE: Picked up JDK_JAVA_OPTIONS: 12:36:40 --add-opens=java.base/java.io=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.net=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 12:36:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 12:36:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 12:36:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 12:36:40 -Xlog:disable 12:37:47 build_karaf_tests221: OK ✔ in 1 minute 14.15 seconds 12:37:47 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:37:47 build_karaf_tests121: OK ✔ in 1 minute 14.48 seconds 12:37:47 build_karaf_tests200: OK ✔ in 1 minute 14.5 seconds 12:37:47 build_karaf_tests71: OK ✔ in 1 minute 14.5 seconds 12:37:47 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:37:47 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:37:54 buildlighty: freeze> python -m pip freeze --all 12:37:54 sims: freeze> python -m pip freeze --all 12:37:54 buildlighty: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:37:54 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 12:37:54 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 12:37:54 sims: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:37:54 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 12:37:54 Using lighynode version 22.1.0.7 12:37:54 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 12:38:33 sims: OK ✔ in 27.16 seconds 12:38:33 buildlighty: OK ✔ in 28.43 seconds 12:38:33 testsPCE: freeze> python -m pip freeze --all 12:38:33 testsPCE: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,click==8.4.2,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.63.0,gnpy4tpce==2.4.7,idna==3.18,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.0,lxml==6.1.1,MarkupSafe==3.0.3,matplotlib==3.11.0,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.2,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.2,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 12:38:33 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 12:38:33 pytest -q transportpce_tests/pce/test01_pce.py 12:39:21 .................... [100%] 12:40:25 20 passed in 111.44s (0:01:51) 12:40:25 pytest -q transportpce_tests/pce/test02_pce_400G.py 12:40:42 ............ [100%] 12:41:12 12 passed in 47.34s 12:41:12 pytest -q transportpce_tests/pce/test03_gnpy.py 12:41:30 ........ [100%] 12:41:51 8 passed in 38.34s 12:41:51 pytest -q transportpce_tests/pce/test04_pce_bug_fix.py 12:42:24 ... [100%] 12:42:29 3 passed in 37.28s 12:42:29 testsPCE: OK ✔ in 4 minutes 42 seconds 12:42:29 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:42:29 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 12:42:35 tests_tapi: freeze> python -m pip freeze --all 12:42:35 tests121: freeze> python -m pip freeze --all 12:42:35 tests_tapi: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:42:35 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 12:42:35 using environment variables from ./karaf221.env 12:42:35 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 12:42:35 tests121: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 12:42:35 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 12:42:35 using environment variables from ./karaf121.env 12:42:35 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 12:43:34 ........................................ [100%] 12:44:25 21 passed in 109.11s (0:01:49) 12:44:25 pytest -q transportpce_tests/1.2.1/test02_topo_portmapping.py 12:44:26 ..................... [100%] 12:45:17 6 passed in 51.91s 12:45:17 pytest -q transportpce_tests/1.2.1/test03_topology.py 12:45:18 ......................................................... [100%] 12:47:39 44 passed in 141.95s (0:02:21) 12:47:39 pytest -q transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py 12:48:13 ......................... [100%] 12:49:05 24 passed in 85.74s (0:01:25) 12:49:05 pytest -q transportpce_tests/1.2.1/test05_olm.py 12:49:07 ................ [100%] 12:50:21 51 passed in 465.23s (0:07:45) 12:50:21 pytest -q transportpce_tests/tapi/test02_full_topology.py 12:50:22 .......................................................... [100%] 12:55:16 40 passed in 370.15s (0:06:10) 12:55:16 pytest -q transportpce_tests/1.2.1/test06_end2end.py 12:55:19 ..... [100%] 12:55:57 36 passed in 336.21s (0:05:36) 12:55:57 pytest -q transportpce_tests/tapi/test03_tapi_device_change_notifications.py 12:55:58 ......................................................................................................................... [100%] 13:04:27 71 passed in 508.99s (0:08:28) 13:04:27 pytest -q transportpce_tests/tapi/test04_topo_extension.py 13:05:22 ................... [100%] 13:06:53 19 passed in 146.12s (0:02:26) 13:06:53 pytest -q transportpce_tests/tapi/test05_pce_tapi.py 13:07:14 .... [100%] 13:07:17 54 passed in 721.10s (0:12:01) 13:08:59 .F......F.............E [100%] 13:14:45 ==================================== ERRORS ==================================== 13:14:45 ______ ERROR at teardown of TransportPCEtest.test_22_get_no_tapi_services ______ 13:14:45 13:14:45 self = 13:14:45 conn = 13:14:45 method = 'GET' 13:14:45 url = '/rests/data/ietf-network:networks/network=otn-topology?content=config' 13:14:45 body = None 13:14:45 headers = {'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Basic YWRtaW46YWRtaW4='} 13:14:45 retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 13:14:45 timeout = Timeout(connect=30, read=30, total=None), chunked = False 13:14:45 response_conn = 13:14:45 preload_content = False, decode_content = False, enforce_content_length = True 13:14:45 13:14:45 def _make_request( 13:14:45 self, 13:14:45 conn: BaseHTTPConnection, 13:14:45 method: str, 13:14:45 url: str, 13:14:45 body: _TYPE_BODY | None = None, 13:14:45 headers: typing.Mapping[str, str] | None = None, 13:14:45 retries: Retry | None = None, 13:14:45 timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 13:14:45 chunked: bool = False, 13:14:45 response_conn: BaseHTTPConnection | None = None, 13:14:45 preload_content: bool = True, 13:14:45 decode_content: bool = True, 13:14:45 enforce_content_length: bool = True, 13:14:45 ) -> BaseHTTPResponse: 13:14:45 """ 13:14:45 Perform a request on a given urllib connection object taken from our 13:14:45 pool. 13:14:45 13:14:45 :param conn: 13:14:45 a connection from one of our connection pools 13:14:45 13:14:45 :param method: 13:14:45 HTTP request method (such as GET, POST, PUT, etc.) 13:14:45 13:14:45 :param url: 13:14:45 The URL to perform the request on. 13:14:45 13:14:45 :param body: 13:14:45 Data to send in the request body, either :class:`str`, :class:`bytes`, 13:14:45 an iterable of :class:`str`/:class:`bytes`, or a file-like object. 13:14:45 13:14:45 :param headers: 13:14:45 Dictionary of custom headers to send, such as User-Agent, 13:14:45 If-None-Match, etc. If None, pool headers are used. If provided, 13:14:45 these headers completely replace any pool-specific headers. 13:14:45 13:14:45 :param retries: 13:14:45 Configure the number of retries to allow before raising a 13:14:45 :class:`~urllib3.exceptions.MaxRetryError` exception. 13:14:45 13:14:45 Pass ``None`` to retry until you receive a response. Pass a 13:14:45 :class:`~urllib3.util.retry.Retry` object for fine-grained control 13:14:45 over different types of retries. 13:14:45 Pass an integer number to retry connection errors that many times, 13:14:45 but no other types of errors. Pass zero to never retry. 13:14:45 13:14:45 If ``False``, then retries are disabled and any exception is raised 13:14:45 immediately. Also, instead of raising a MaxRetryError on redirects, 13:14:45 the redirect response will be returned. 13:14:45 13:14:45 :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 13:14:45 13:14:45 :param timeout: 13:14:45 If specified, overrides the default timeout for this one 13:14:45 request. It may be a float (in seconds) or an instance of 13:14:45 :class:`urllib3.util.Timeout`. 13:14:45 13:14:45 :param chunked: 13:14:45 If True, urllib3 will send the body using chunked transfer 13:14:45 encoding. Otherwise, urllib3 will send the body using the standard 13:14:45 content-length form. Defaults to False. 13:14:45 13:14:45 :param response_conn: 13:14:45 Set this to ``None`` if you will handle releasing the connection or 13:14:45 set the connection to have the response release it. 13:14:45 13:14:45 :param preload_content: 13:14:45 If True, the response's body will be preloaded during construction. 13:14:45 13:14:45 :param decode_content: 13:14:45 If True, will attempt to decode the body based on the 13:14:45 'content-encoding' header. 13:14:45 13:14:45 :param enforce_content_length: 13:14:45 Enforce content length checking. Body returned by server must match 13:14:45 value of Content-Length header, if present. Otherwise, raise error. 13:14:45 """ 13:14:45 self.num_requests += 1 13:14:45 13:14:45 timeout_obj = self._get_timeout(timeout) 13:14:45 timeout_obj.start_connect() 13:14:45 conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout) 13:14:45 13:14:45 try: 13:14:45 # Trigger any extra validation we need to do. 13:14:45 try: 13:14:45 self._validate_conn(conn) 13:14:45 except (SocketTimeout, BaseSSLError) as e: 13:14:45 self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) 13:14:45 raise 13:14:45 13:14:45 # _validate_conn() starts the connection to an HTTPS proxy 13:14:45 # so we need to wrap errors with 'ProxyError' here too. 13:14:45 except ( 13:14:45 OSError, 13:14:45 NewConnectionError, 13:14:45 TimeoutError, 13:14:45 BaseSSLError, 13:14:45 CertificateError, 13:14:45 SSLError, 13:14:45 ) as e: 13:14:45 new_e: Exception = e 13:14:45 if isinstance(e, (BaseSSLError, CertificateError)): 13:14:45 new_e = SSLError(e) 13:14:45 # If the connection didn't successfully connect to it's proxy 13:14:45 # then there 13:14:45 if isinstance( 13:14:45 new_e, (OSError, NewConnectionError, TimeoutError, SSLError) 13:14:45 ) and (conn and conn.proxy and not conn.has_connected_to_proxy): 13:14:45 new_e = _wrap_proxy_error(new_e, conn.proxy.scheme) 13:14:45 raise new_e 13:14:45 13:14:45 # conn.request() calls http.client.*.request, not the method in 13:14:45 # urllib3.request. It also calls makefile (recv) on the socket. 13:14:45 try: 13:14:45 conn.request( 13:14:45 method, 13:14:45 url, 13:14:45 body=body, 13:14:45 headers=headers, 13:14:45 chunked=chunked, 13:14:45 preload_content=preload_content, 13:14:45 decode_content=decode_content, 13:14:45 enforce_content_length=enforce_content_length, 13:14:45 ) 13:14:45 13:14:45 # We are swallowing BrokenPipeError (errno.EPIPE) since the server is 13:14:45 # legitimately able to close the connection after sending a valid response. 13:14:45 # With this behaviour, the received response is still readable. 13:14:45 except BrokenPipeError: 13:14:45 pass 13:14:45 except OSError as e: 13:14:45 # MacOS/Linux 13:14:45 # EPROTOTYPE and ECONNRESET are needed on macOS 13:14:45 # https://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/ 13:14:45 # Condition changed later to emit ECONNRESET instead of only EPROTOTYPE. 13:14:45 if e.errno != errno.EPROTOTYPE and e.errno != errno.ECONNRESET: 13:14:45 raise 13:14:45 13:14:45 # Reset the timeout for the recv() on the socket 13:14:45 read_timeout = timeout_obj.read_timeout 13:14:45 13:14:45 if not conn.is_closed: 13:14:45 # In Python 3 socket.py will catch EAGAIN and return None when you 13:14:45 # try and read into the file pointer created by http.client, which 13:14:45 # instead raises a BadStatusLine exception. Instead of catching 13:14:45 # the exception and assuming all BadStatusLine exceptions are read 13:14:45 # timeouts, check for a zero timeout before making the request. 13:14:45 if read_timeout == 0: 13:14:45 raise ReadTimeoutError( 13:14:45 self, url, f"Read timed out. (read timeout={read_timeout})" 13:14:45 ) 13:14:45 conn.timeout = read_timeout 13:14:45 13:14:45 # Receive the response from the server 13:14:45 try: 13:14:45 > response = conn.getresponse() 13:14:45 ^^^^^^^^^^^^^^^^^^ 13:14:45 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:534: 13:14:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connection.py:571: in getresponse 13:14:45 httplib_response = super().getresponse() 13:14:45 ^^^^^^^^^^^^^^^^^^^^^ 13:14:45 /opt/pyenv/versions/3.11.10/lib/python3.11/http/client.py:1395: in getresponse 13:14:45 response.begin() 13:14:45 /opt/pyenv/versions/3.11.10/lib/python3.11/http/client.py:325: in begin 13:14:45 version, status, reason = self._read_status() 13:14:45 ^^^^^^^^^^^^^^^^^^^ 13:14:45 /opt/pyenv/versions/3.11.10/lib/python3.11/http/client.py:286: in _read_status 13:14:45 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:14:45 13:14:45 self = 13:14:45 b = 13:14:45 13:14:45 def readinto(self, b): 13:14:45 """Read up to len(b) bytes into the writable buffer *b* and return 13:14:45 the number of bytes read. If the socket is non-blocking and no bytes 13:14:45 are available, None is returned. 13:14:45 13:14:45 If *b* is non-empty, a 0 return value indicates that the connection 13:14:45 was shutdown at the other end. 13:14:45 """ 13:14:45 self._checkClosed() 13:14:45 self._checkReadable() 13:14:45 if self._timeout_occurred: 13:14:45 raise OSError("cannot read from timed out object") 13:14:45 while True: 13:14:45 try: 13:14:45 > return self._sock.recv_into(b) 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 E TimeoutError: timed out 13:14:45 13:14:45 /opt/pyenv/versions/3.11.10/lib/python3.11/socket.py:718: TimeoutError 13:14:45 13:14:45 The above exception was the direct cause of the following exception: 13:14:45 13:14:45 self = 13:14:45 request = , stream = False, timeout = 30, verify = True 13:14:45 cert = None, proxies = OrderedDict() 13:14:45 13:14:45 def send( 13:14:45 self, 13:14:45 request: PreparedRequest, 13:14:45 stream: bool = False, 13:14:45 timeout: _t.TimeoutType = None, 13:14:45 verify: _t.VerifyType = True, 13:14:45 cert: _t.CertType = None, 13:14:45 proxies: dict[str, str] | None = None, 13:14:45 ) -> Response: 13:14:45 """Sends PreparedRequest object. Returns Response object. 13:14:45 13:14:45 :param request: The :class:`PreparedRequest ` being sent. 13:14:45 :param stream: (optional) Whether to stream the request content. 13:14:45 :param timeout: (optional) How long to wait for the server to send 13:14:45 data before giving up, as a float, or a :ref:`(connect timeout, 13:14:45 read timeout) ` tuple. 13:14:45 :type timeout: float or tuple or urllib3 Timeout object 13:14:45 :param verify: (optional) Either a boolean, in which case it controls whether 13:14:45 we verify the server's TLS certificate, or a string, in which case it 13:14:45 must be a path to a CA bundle to use 13:14:45 :param cert: (optional) Any user-provided SSL certificate to be trusted. 13:14:45 :param proxies: (optional) The proxies dictionary to apply to the request. 13:14:45 :rtype: requests.Response 13:14:45 """ 13:14:45 13:14:45 assert _is_prepared(request) 13:14:45 13:14:45 try: 13:14:45 conn = self.get_connection_with_tls_context( 13:14:45 request, verify, proxies=proxies, cert=cert 13:14:45 ) 13:14:45 except LocationValueError as e: 13:14:45 raise InvalidURL(e, request=request) 13:14:45 13:14:45 self.cert_verify(conn, request.url, verify, cert) 13:14:45 url = self.request_url(request, proxies) 13:14:45 self.add_headers( 13:14:45 request, 13:14:45 stream=stream, 13:14:45 timeout=timeout, 13:14:45 verify=verify, 13:14:45 cert=cert, 13:14:45 proxies=proxies, 13:14:45 ) 13:14:45 13:14:45 chunked = not (request.body is None or "Content-Length" in request.headers) 13:14:45 13:14:45 if isinstance(timeout, tuple): 13:14:45 try: 13:14:45 connect, read = timeout 13:14:45 resolved_timeout = TimeoutSauce(connect=connect, read=read) 13:14:45 except ValueError: 13:14:45 raise ValueError( 13:14:45 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 13:14:45 f"or a single float to set both timeouts to the same value." 13:14:45 ) 13:14:45 elif isinstance(timeout, TimeoutSauce): 13:14:45 resolved_timeout = timeout 13:14:45 else: 13:14:45 resolved_timeout = TimeoutSauce(connect=timeout, read=timeout) 13:14:45 13:14:45 try: 13:14:45 > resp = conn.urlopen( 13:14:45 method=request.method, 13:14:45 url=url, 13:14:45 body=request.body, # type: ignore[arg-type] # urllib3 stubs don't accept Iterable[bytes | str] 13:14:45 headers=request.headers, # type: ignore[arg-type] # urllib3#3072 13:14:45 redirect=False, 13:14:45 assert_same_host=False, 13:14:45 preload_content=False, 13:14:45 decode_content=False, 13:14:45 retries=self.max_retries, 13:14:45 timeout=resolved_timeout, 13:14:45 chunked=chunked, 13:14:45 ) 13:14:45 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/requests/adapters.py:696: 13:14:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:842: in urlopen 13:14:45 retries = retries.increment( 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/util/retry.py:498: in increment 13:14:45 raise reraise(type(error), error, _stacktrace) 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/util/util.py:39: in reraise 13:14:45 raise value 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:788: in urlopen 13:14:45 response = self._make_request( 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:536: in _make_request 13:14:45 self._raise_timeout(err=e, url=url, timeout_value=read_timeout) 13:14:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:14:45 13:14:45 self = 13:14:45 err = TimeoutError('timed out') 13:14:45 url = '/rests/data/ietf-network:networks/network=otn-topology?content=config' 13:14:45 timeout_value = 30 13:14:45 13:14:45 def _raise_timeout( 13:14:45 self, 13:14:45 err: BaseSSLError | OSError | SocketTimeout, 13:14:45 url: str, 13:14:45 timeout_value: _TYPE_TIMEOUT | None, 13:14:45 ) -> None: 13:14:45 """Is the error actually a timeout? Will raise a ReadTimeout or pass""" 13:14:45 13:14:45 if isinstance(err, SocketTimeout): 13:14:45 > raise ReadTimeoutError( 13:14:45 self, url, f"Read timed out. (read timeout={timeout_value})" 13:14:45 ) from err 13:14:45 E urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=8183): Read timed out. (read timeout=30) 13:14:45 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/urllib3/connectionpool.py:367: ReadTimeoutError 13:14:45 13:14:45 During handling of the above exception, another exception occurred: 13:14:45 13:14:45 cls = 13:14:45 13:14:45 @classmethod 13:14:45 def tearDownClass(cls): 13:14:45 test_utils_generate_tapi_topo.cleanup_and_disconnect_devices() 13:14:45 # pylint: disable=not-an-iterable 13:14:45 > test_utils_generate_tapi_topo.uninstall_Tapi_Feature() 13:14:45 13:14:45 transportpce_tests/tapi/test05_pce_tapi.py:341: 13:14:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:14:45 transportpce_tests/common/test_utils_generate_tapi_topo.py:383: in uninstall_Tapi_Feature 13:14:45 response = test_utils.get_ietf_network_request('otn-topology', 'config') 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 transportpce_tests/common/test_utils.py:563: in get_ietf_network_request 13:14:45 response = get_request(url[RESTCONF_VERSION].format(*format_args)) 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 transportpce_tests/common/test_utils.py:117: in get_request 13:14:45 return requests.request( 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/requests/api.py:71: in request 13:14:45 return session.request(method=method, url=url, **kwargs) 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/requests/sessions.py:651: in request 13:14:45 resp = self.send(prep, **send_kwargs) 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/requests/sessions.py:784: in send 13:14:45 r = adapter.send(request, **kwargs) 13:14:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:14:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:14:45 13:14:45 self = 13:14:45 request = , stream = False, timeout = 30, verify = True 13:14:45 cert = None, proxies = OrderedDict() 13:14:45 13:14:45 def send( 13:14:45 self, 13:14:45 request: PreparedRequest, 13:14:45 stream: bool = False, 13:14:45 timeout: _t.TimeoutType = None, 13:14:45 verify: _t.VerifyType = True, 13:14:45 cert: _t.CertType = None, 13:14:45 proxies: dict[str, str] | None = None, 13:14:45 ) -> Response: 13:14:45 """Sends PreparedRequest object. Returns Response object. 13:14:45 13:14:45 :param request: The :class:`PreparedRequest ` being sent. 13:14:45 :param stream: (optional) Whether to stream the request content. 13:14:45 :param timeout: (optional) How long to wait for the server to send 13:14:45 data before giving up, as a float, or a :ref:`(connect timeout, 13:14:45 read timeout) ` tuple. 13:14:45 :type timeout: float or tuple or urllib3 Timeout object 13:14:45 :param verify: (optional) Either a boolean, in which case it controls whether 13:14:45 we verify the server's TLS certificate, or a string, in which case it 13:14:45 must be a path to a CA bundle to use 13:14:45 :param cert: (optional) Any user-provided SSL certificate to be trusted. 13:14:45 :param proxies: (optional) The proxies dictionary to apply to the request. 13:14:45 :rtype: requests.Response 13:14:45 """ 13:14:45 13:14:45 assert _is_prepared(request) 13:14:45 13:14:45 try: 13:14:45 conn = self.get_connection_with_tls_context( 13:14:45 request, verify, proxies=proxies, cert=cert 13:14:45 ) 13:14:45 except LocationValueError as e: 13:14:45 raise InvalidURL(e, request=request) 13:14:45 13:14:45 self.cert_verify(conn, request.url, verify, cert) 13:14:45 url = self.request_url(request, proxies) 13:14:45 self.add_headers( 13:14:45 request, 13:14:45 stream=stream, 13:14:45 timeout=timeout, 13:14:45 verify=verify, 13:14:45 cert=cert, 13:14:45 proxies=proxies, 13:14:45 ) 13:14:45 13:14:45 chunked = not (request.body is None or "Content-Length" in request.headers) 13:14:45 13:14:45 if isinstance(timeout, tuple): 13:14:45 try: 13:14:45 connect, read = timeout 13:14:45 resolved_timeout = TimeoutSauce(connect=connect, read=read) 13:14:45 except ValueError: 13:14:45 raise ValueError( 13:14:45 f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 13:14:45 f"or a single float to set both timeouts to the same value." 13:14:45 ) 13:14:45 elif isinstance(timeout, TimeoutSauce): 13:14:45 resolved_timeout = timeout 13:14:45 else: 13:14:45 resolved_timeout = TimeoutSauce(connect=timeout, read=timeout) 13:14:45 13:14:45 try: 13:14:45 resp = conn.urlopen( 13:14:45 method=request.method, 13:14:45 url=url, 13:14:45 body=request.body, # type: ignore[arg-type] # urllib3 stubs don't accept Iterable[bytes | str] 13:14:45 headers=request.headers, # type: ignore[arg-type] # urllib3#3072 13:14:45 redirect=False, 13:14:45 assert_same_host=False, 13:14:45 preload_content=False, 13:14:45 decode_content=False, 13:14:45 retries=self.max_retries, 13:14:45 timeout=resolved_timeout, 13:14:45 chunked=chunked, 13:14:45 ) 13:14:45 13:14:45 except (ProtocolError, OSError) as err: 13:14:45 raise ConnectionError(err, request=request) 13:14:45 13:14:45 except MaxRetryError as e: 13:14:45 if isinstance(e.reason, ConnectTimeoutError): 13:14:45 # TODO: Remove this in 3.0.0: see #2811 13:14:45 if not isinstance(e.reason, NewConnectionError): 13:14:45 raise ConnectTimeout(e, request=request) 13:14:45 13:14:45 if isinstance(e.reason, ResponseError): 13:14:45 raise RetryError(e, request=request) 13:14:45 13:14:45 if isinstance(e.reason, _ProxyError): 13:14:45 raise ProxyError(e, request=request) 13:14:45 13:14:45 if isinstance(e.reason, _SSLError): 13:14:45 # This branch is for urllib3 v1.22 and later. 13:14:45 raise SSLError(e, request=request) 13:14:45 13:14:45 raise ConnectionError(e, request=request) 13:14:45 13:14:45 except ClosedPoolError as e: 13:14:45 raise ConnectionError(e, request=request) 13:14:45 13:14:45 except _ProxyError as e: 13:14:45 raise ProxyError(e) 13:14:45 13:14:45 except (_SSLError, _HTTPError) as e: 13:14:45 if isinstance(e, _SSLError): 13:14:45 # This branch is for urllib3 versions earlier than v1.22 13:14:45 raise SSLError(e, request=request) 13:14:45 elif isinstance(e, ReadTimeoutError): 13:14:45 > raise ReadTimeout(e, request=request) 13:14:45 E requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8183): Read timed out. (read timeout=30) 13:14:45 13:14:45 ../.tox/tests_tapi/lib/python3.11/site-packages/requests/adapters.py:742: ReadTimeout 13:14:45 --------------------------- Captured stdout teardown --------------------------- 13:14:45 Searching for patterns in karaf.log... Pattern found! Node XPDR-A1 correctly deleted from tpce topology... Searching for patterns in karaf.log... Pattern found! Node SPDR-SA1 correctly deleted from tpce topology... uninstalling feature odl-transportpce-tapi 13:14:45 client: JAVA_HOME not set; results may vary 13:14:45 odl-transportpce-tapi │ 13.0.0.SNAPSHOT │ │ Uninstalled │ odl-transportpce-tapi │ OpenDaylight :: transportpce :: tapi 13:14:45 =================================== FAILURES =================================== 13:14:45 _ TransportPCEtest.test_02_successfull_path_computation_phtnc_service_spdr_x2 __ 13:14:45 13:14:45 self = 13:14:45 13:14:45 def test_02_successfull_path_computation_phtnc_service_spdr_x2(self): 13:14:45 # Path Computation from NEP of SPDR-SA1-XPDR2-NETWORK2 to NEP of of SPDR-SC1-XPDR2-NETWORK2 13:14:45 self.path_computation_input_data["service-a-end"]["service-rate"] = "100" 13:14:45 self.path_computation_input_data["service-z-end"]["service-rate"] = "100" 13:14:45 response = test_utils.transportpce_api_rpc_request('transportpce-pce', 13:14:45 'path-computation-request', 13:14:45 self.path_computation_input_data) 13:14:45 # pylint: disable=consider-using-f-string 13:14:45 print("getServiceResponse Service1 PhotonicMedia: {}".format(response)) 13:14:45 self.assertEqual(response['status_code'], requests.codes.ok) 13:14:45 > self.assertIn('Path is calculated', 13:14:45 response['output']['configuration-response-common']['response-message']) 13:14:45 E AssertionError: 'Path is calculated' not found in 'No path found by PCE.' 13:14:45 13:14:45 transportpce_tests/tapi/test05_pce_tapi.py:373: AssertionError 13:14:45 ----------------------------- Captured stdout call ----------------------------- 13:14:45 getServiceResponse Service1 PhotonicMedia: {'status_code': 200, 'output': {'configuration-response-common': {'response-code': '500', 'response-message': 'No path found by PCE.', 'ack-final-indicator': 'Yes', 'request-id': 'request1'}}} 13:14:45 _ TransportPCEtest.test_09_successfull_path_computation_phtnc_service_spdr_x1 __ 13:14:45 13:14:45 self = 13:14:45 13:14:45 def test_09_successfull_path_computation_phtnc_service_spdr_x1(self): 13:14:45 # Path Computation from NEP of SPDR-SA1-XPDR1-NETWORK1 to NEP of of SPDR-SC1-XPDR1-NETWORK1 13:14:45 self.path_computation_input_data["service-name"] = "383790b1-ce29-4b7f-8462-1ca72d9db6ad" 13:14:45 self.path_computation_input_data["service-a-end"]["clli"] = self.s1Auuid 13:14:45 self.path_computation_input_data["service-a-end"]["service-format"] = "OTU" 13:14:45 self.path_computation_input_data["service-a-end"]["service-rate"] = "100" 13:14:45 self.path_computation_input_data["service-a-end"]["node-id"] = "SPDR-SA1-XPDR1+XPONDER" 13:14:45 self.path_computation_input_data["service-a-end"]["otu-service-rate"] = "org-openroadm-otn-common-types:OTU4" 13:14:45 self.path_computation_input_data["service-a-end"]["tx-direction"]["logical-connection-point"] = self.nAX1OTS1 13:14:45 self.path_computation_input_data["service-a-end"]["rx-direction"]["logical-connection-point"] = self.nAX1OTS1 13:14:45 self.path_computation_input_data["service-z-end"]["clli"] = self.s1Cuuid 13:14:45 self.path_computation_input_data["service-z-end"]["service-format"] = "OTU" 13:14:45 self.path_computation_input_data["service-z-end"]["service-rate"] = "100" 13:14:45 self.path_computation_input_data["service-z-end"]["node-id"] = "SPDR-SC1-XPDR1+XPONDER" 13:14:45 self.path_computation_input_data["service-z-end"]["otu-service-rate"] = "org-openroadm-otn-common-types:OTU4" 13:14:45 self.path_computation_input_data["service-z-end"]["tx-direction"]["logical-connection-point"] = self.nZX1OTS1 13:14:45 self.path_computation_input_data["service-z-end"]["rx-direction"]["logical-connection-point"] = self.nZX1OTS1 13:14:45 response = test_utils.transportpce_api_rpc_request('transportpce-pce', 13:14:45 'path-computation-request', 13:14:45 self.path_computation_input_data) 13:14:45 # pylint: disable=consider-using-f-string 13:14:45 print("getServiceResponse Service2 PhotonicMedia: {}".format(response)) 13:14:45 self.assertEqual(response['status_code'], requests.codes.ok) 13:14:45 > self.assertIn('Path is calculated', 13:14:45 response['output']['configuration-response-common']['response-message']) 13:14:45 E AssertionError: 'Path is calculated' not found in 'No path found by PCE.' 13:14:45 13:14:45 transportpce_tests/tapi/test05_pce_tapi.py:589: AssertionError 13:14:45 ----------------------------- Captured stdout call ----------------------------- 13:14:45 getServiceResponse Service2 PhotonicMedia: {'status_code': 200, 'output': {'configuration-response-common': {'response-code': '500', 'response-message': 'No path found by PCE.', 'ack-final-indicator': 'Yes', 'request-id': 'request1'}}} 13:14:45 =========================== short test summary info ============================ 13:14:45 FAILED transportpce_tests/tapi/test05_pce_tapi.py::TransportPCEtest::test_02_successfull_path_computation_phtnc_service_spdr_x2 13:14:45 FAILED transportpce_tests/tapi/test05_pce_tapi.py::TransportPCEtest::test_09_successfull_path_computation_phtnc_service_spdr_x1 13:14:45 ERROR transportpce_tests/tapi/test05_pce_tapi.py::TransportPCEtest::test_22_get_no_tapi_services 13:14:45 2 failed, 20 passed, 1 error in 471.23s (0:07:51) 13:14:45 tests121: OK ✔ in 24 minutes 48.58 seconds 13:14:45 tests_tapi: exit 1 (1929.39 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=7634 13:14:45 tests_tapi: FAIL ✖ in 32 minutes 16.19 seconds 13:14:45 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:14:45 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:14:52 tests221: freeze> python -m pip freeze --all 13:14:52 tests200: freeze> python -m pip freeze --all 13:14:53 tests221: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 13:14:53 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 13:14:53 using environment variables from ./karaf221.env 13:14:53 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 13:14:53 tests200: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 13:14:53 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 13:14:53 using environment variables from ./karafoc200.env 13:14:53 pytest -q transportpce_tests/oc200/test01_portmapping.py 13:15:25 .......... [100%] 13:15:41 10 passed in 48.03s 13:15:41 pytest -q transportpce_tests/oc200/test02_topology.py 13:16:07 ..........EEEEEEEE.EEEEEEEEEE.EEEEEEEEEE.EEEEEEE [100%] 13:16:40 ==================================== ERRORS ==================================== 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 13:16:40 13:16:40 cls = 13:16:40 13:16:40 @classmethod 13:16:40 def setUpClass(cls): 13:16:40 > cls.processes = test_utils.start_tpce() 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 13:16:40 transportpce_tests/2.2.1/test01_portmapping.py:33: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 def start_tpce(): 13:16:40 if 'NO_ODL_STARTUP' in os.environ: 13:16:40 print('No OpenDaylight instance to start!') 13:16:40 return [] 13:16:40 print('starting OpenDaylight...') 13:16:40 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:16:40 process = start_lighty() 13:16:40 else: 13:16:40 process = start_karaf() 13:16:40 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:16:40 print('OpenDaylight started !') 13:16:40 else: 13:16:40 print('OpenDaylight failed to start !') 13:16:40 shutdown_process(process) 13:16:40 for pid in process_list: 13:16:40 shutdown_process(pid) 13:16:40 > sys.exit(1) 13:16:40 E SystemExit: 1 13:16:40 13:16:40 transportpce_tests/common/test_utils.py:233: SystemExit 13:16:40 ---------------------------- Captured stdout setup ----------------------------- 13:16:40 starting OpenDaylight... 13:16:40 starting KARAF (karaf221) TransportPCE build... 13:16:40 Searching for patterns in karaf.log... Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:16:40 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5bba0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5b100> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9ff5ad40> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3bec0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5b100> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3bec0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5a8e0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd58040> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3bec0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5a660> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd58040> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5a660> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3bec0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3ade0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3b060> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3ade0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3b060> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71d580> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd3ade0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71d080> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71d940> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71ca40> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71dbc0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71ca40> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9d71d4e0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 13:16:40 13:16:40 cls = 13:16:40 func = . at 0x7f1f9dd5aac0> 13:16:40 when = 'setup' 13:16:40 reraise = (, ) 13:16:40 13:16:40 @classmethod 13:16:40 def from_call( 13:16:40 cls, 13:16:40 func: Callable[[], TResult], 13:16:40 when: Literal["collect", "setup", "call", "teardown"], 13:16:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:40 ) -> CallInfo[TResult]: 13:16:40 """Call func, wrapping the result in a CallInfo. 13:16:40 13:16:40 :param func: 13:16:40 The function to call. Called without arguments. 13:16:40 :type func: Callable[[], _pytest.runner.TResult] 13:16:40 :param when: 13:16:40 The phase in which the function is called. 13:16:40 :param reraise: 13:16:40 Exception or exceptions that shall propagate if raised by the 13:16:40 function, instead of being wrapped in the CallInfo. 13:16:40 """ 13:16:40 excinfo = None 13:16:40 instant = timing.Instant() 13:16:40 try: 13:16:40 > result: TResult | None = func() 13:16:40 ^^^^^^ 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:40 lambda: runtest_hook(item=item, **kwds), 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:40 yield 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:40 return (yield) 13:16:40 ^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:40 item.session._setupstate.setup(item) 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:40 col.setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:40 super().setup() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:40 self._request._fillfixtures() 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:40 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:40 fixturedef = self._get_active_fixturedef(argname) 13:16:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:40 fixturedef.execute(request=subrequest) 13:16:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:40 13:16:40 self = 13:16:40 request = > 13:16:40 13:16:40 def execute(self, request: SubRequest) -> FixtureValue: 13:16:40 """Return the value of this fixture, executing it if not cached.""" 13:16:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:40 # This needs to be done before checking if we have a cached value, since 13:16:40 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:40 # parametrization, they finalize themselves and fixtures depending on it 13:16:40 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:40 # See #4871 13:16:40 requested_fixtures_that_should_finalize_us = [] 13:16:40 for argname in self.argnames: 13:16:40 fixturedef = request._get_active_fixturedef(argname) 13:16:40 # Saves requested fixtures in a list so we later can add our finalizer 13:16:40 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:40 # down first. This is generally handled by SetupState, but still currently 13:16:40 # needed when this fixture is not parametrized but depends on a parametrized 13:16:40 # fixture. 13:16:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:40 13:16:40 # Check for (and return) cached value/exception. 13:16:40 if self.cached_result is not None: 13:16:40 request_cache_key = self.cache_key(request) 13:16:40 cache_key = self.cached_result[1] 13:16:40 try: 13:16:40 # Attempt to make a normal == check: this might fail for objects 13:16:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:40 cache_hit = bool(request_cache_key == cache_key) 13:16:40 except (ValueError, RuntimeError): 13:16:40 # If the comparison raises, use 'is' as fallback. 13:16:40 cache_hit = request_cache_key is cache_key 13:16:40 13:16:40 if cache_hit: 13:16:40 if self.cached_result[2] is not None: 13:16:40 exc, exc_tb = self.cached_result[2] 13:16:40 raise exc.with_traceback(exc_tb) 13:16:40 else: 13:16:40 return self.cached_result[0] 13:16:40 # We have a previous but differently parametrized fixture instance 13:16:40 # so we need to tear it down before creating a new one. 13:16:40 self.finish(request) 13:16:40 assert self.cached_result is None 13:16:40 13:16:40 # Add finalizer to requested fixtures we saved previously. 13:16:40 # We make sure to do this after checking for cached value to avoid 13:16:40 # adding our finalizer multiple times. (#12135) 13:16:40 finalizer = functools.partial(self.finish, request=request) 13:16:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:40 parent_fixture.addfinalizer(finalizer) 13:16:40 13:16:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:40 # which is executed last. 13:16:40 > assert not self._finalizers 13:16:40 ^^^^^^^^^^^^^^^^^^^^ 13:16:40 E AssertionError 13:16:40 13:16:40 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:40 =========================== short test summary info ============================ 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 13:16:40 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 13:16:40 35 errors in 107.29s (0:01:47) 13:16:40 tests221: exit 1 (107.58 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=23024 13:16:40 tests221: FAIL ✖ in 1 minute 55.49 seconds 13:16:40 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:16:41 . [100%] 13:16:43 14 passed in 61.39s (0:01:01) 13:16:43 pytest -q transportpce_tests/oc200/test03_renderer.py 13:16:47 tests_hybrid: freeze> python -m pip freeze --all 13:16:48 tests_hybrid: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 13:16:48 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 13:16:48 using environment variables from ./karaf221.env 13:16:48 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 13:17:11 ................ [100%] 13:17:33 16 passed in 50.34s 13:17:33 pytest -q transportpce_tests/oc200/test04_end2end.py 13:18:20 ....EEEEEEE.EEEEE.EEEEEEEEEEEEEEEEEE.EEEEE.EEEEEEEEEEEEEEE.E [100%] 13:18:39 ==================================== ERRORS ==================================== 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 13:18:39 13:18:39 cls = 13:18:39 13:18:39 @classmethod 13:18:39 def setUpClass(cls): 13:18:39 > cls.processes = test_utils.start_tpce() 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 13:18:39 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 def start_tpce(): 13:18:39 if 'NO_ODL_STARTUP' in os.environ: 13:18:39 print('No OpenDaylight instance to start!') 13:18:39 return [] 13:18:39 print('starting OpenDaylight...') 13:18:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:18:39 process = start_lighty() 13:18:39 else: 13:18:39 process = start_karaf() 13:18:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:18:39 print('OpenDaylight started !') 13:18:39 else: 13:18:39 print('OpenDaylight failed to start !') 13:18:39 shutdown_process(process) 13:18:39 for pid in process_list: 13:18:39 shutdown_process(pid) 13:18:39 > sys.exit(1) 13:18:39 E SystemExit: 1 13:18:39 13:18:39 transportpce_tests/common/test_utils.py:233: SystemExit 13:18:39 ---------------------------- Captured stdout setup ----------------------------- 13:18:39 starting OpenDaylight... 13:18:39 starting KARAF (karaf221) TransportPCE build... 13:18:39 Searching for patterns in karaf.log... Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb97740> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3e20> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95d27b880> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95dd9ea20> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3880> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95dd9ea20> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3240> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3880> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3240> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95dd9ea20> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786520> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3380> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95dd9ea20> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bbe3380> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96c00> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96c00> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7859e0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7859e0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b785f80> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b784f40> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786c00> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7862a0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7863e0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b785800> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7863e0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786b60> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7868e0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b785d00> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b785d00> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b787420> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786480> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b787740> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786b60> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786340> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786e80> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b786340> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95bb96980> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 13:18:39 13:18:39 cls = 13:18:39 func = . at 0x7ff95b7859e0> 13:18:39 when = 'setup' 13:18:39 reraise = (, ) 13:18:39 13:18:39 @classmethod 13:18:39 def from_call( 13:18:39 cls, 13:18:39 func: Callable[[], TResult], 13:18:39 when: Literal["collect", "setup", "call", "teardown"], 13:18:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:39 ) -> CallInfo[TResult]: 13:18:39 """Call func, wrapping the result in a CallInfo. 13:18:39 13:18:39 :param func: 13:18:39 The function to call. Called without arguments. 13:18:39 :type func: Callable[[], _pytest.runner.TResult] 13:18:39 :param when: 13:18:39 The phase in which the function is called. 13:18:39 :param reraise: 13:18:39 Exception or exceptions that shall propagate if raised by the 13:18:39 function, instead of being wrapped in the CallInfo. 13:18:39 """ 13:18:39 excinfo = None 13:18:39 instant = timing.Instant() 13:18:39 try: 13:18:39 > result: TResult | None = func() 13:18:39 ^^^^^^ 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:39 lambda: runtest_hook(item=item, **kwds), 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:39 yield 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:39 return (yield) 13:18:39 ^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:39 item.session._setupstate.setup(item) 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:39 col.setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:39 super().setup() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:39 self._request._fillfixtures() 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:39 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:39 fixturedef = self._get_active_fixturedef(argname) 13:18:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:39 fixturedef.execute(request=subrequest) 13:18:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:39 13:18:39 self = 13:18:39 request = > 13:18:39 13:18:39 def execute(self, request: SubRequest) -> FixtureValue: 13:18:39 """Return the value of this fixture, executing it if not cached.""" 13:18:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:39 # This needs to be done before checking if we have a cached value, since 13:18:39 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:39 # parametrization, they finalize themselves and fixtures depending on it 13:18:39 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:39 # See #4871 13:18:39 requested_fixtures_that_should_finalize_us = [] 13:18:39 for argname in self.argnames: 13:18:39 fixturedef = request._get_active_fixturedef(argname) 13:18:39 # Saves requested fixtures in a list so we later can add our finalizer 13:18:39 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:39 # down first. This is generally handled by SetupState, but still currently 13:18:39 # needed when this fixture is not parametrized but depends on a parametrized 13:18:39 # fixture. 13:18:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:39 13:18:39 # Check for (and return) cached value/exception. 13:18:39 if self.cached_result is not None: 13:18:39 request_cache_key = self.cache_key(request) 13:18:39 cache_key = self.cached_result[1] 13:18:39 try: 13:18:39 # Attempt to make a normal == check: this might fail for objects 13:18:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:39 cache_hit = bool(request_cache_key == cache_key) 13:18:39 except (ValueError, RuntimeError): 13:18:39 # If the comparison raises, use 'is' as fallback. 13:18:39 cache_hit = request_cache_key is cache_key 13:18:39 13:18:39 if cache_hit: 13:18:39 if self.cached_result[2] is not None: 13:18:39 exc, exc_tb = self.cached_result[2] 13:18:39 raise exc.with_traceback(exc_tb) 13:18:39 else: 13:18:39 return self.cached_result[0] 13:18:39 # We have a previous but differently parametrized fixture instance 13:18:39 # so we need to tear it down before creating a new one. 13:18:39 self.finish(request) 13:18:39 assert self.cached_result is None 13:18:39 13:18:39 # Add finalizer to requested fixtures we saved previously. 13:18:39 # We make sure to do this after checking for cached value to avoid 13:18:39 # adding our finalizer multiple times. (#12135) 13:18:39 finalizer = functools.partial(self.finish, request=request) 13:18:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:39 parent_fixture.addfinalizer(finalizer) 13:18:39 13:18:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:39 # which is executed last. 13:18:39 > assert not self._finalizers 13:18:39 ^^^^^^^^^^^^^^^^^^^^ 13:18:39 E AssertionError 13:18:39 13:18:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:39 =========================== short test summary info ============================ 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 13:18:39 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 13:18:39 51 errors in 111.03s (0:01:51) 13:18:39 tests_hybrid: exit 1 (111.38 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=24973 13:18:40 .................................. [100%] 13:20:45 43 passed in 191.62s (0:03:11) 13:20:45 tests_hybrid: FAIL ✖ in 1 minute 58.79 seconds 13:20:45 tests200: OK ✔ in 6 minutes 0.44 seconds 13:20:45 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:21:39 tests71: freeze> python -m pip freeze --all 13:21:40 tests71: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.1.0,charset-normalizer==3.4.8,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==83.0.0,urllib3==2.7.0 13:21:40 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 13:21:40 using environment variables from ./karaf71.env 13:21:40 pytest -q transportpce_tests/7.1/test01_portmapping.py 13:22:51 ............ [100%] 13:26:04 12 passed in 263.89s (0:04:23) 13:26:04 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 13:26:32 .............................................................. [100%] 13:28:43 62 passed in 158.55s (0:02:38) 13:28:43 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 13:29:20 ................................................ [100%] 13:31:06 48 passed in 142.67s (0:02:22) 13:31:06 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 13:31:37 ...................... [100%] 13:32:25 22 passed in 79.25s (0:01:19) 13:32:25 buildcontroller: OK (109.90=setup[9.15]+cmd[100.74] seconds) 13:32:25 sims: OK (27.16=setup[7.85]+cmd[19.31] seconds) 13:32:25 build_karaf_tests121: OK (74.47=setup[7.17]+cmd[67.30] seconds) 13:32:25 testsPCE: OK (282.00=setup[46.52]+cmd[235.48] seconds) 13:32:25 tests121: OK (1488.58=setup[6.82]+cmd[1481.76] seconds) 13:32:25 build_karaf_tests221: OK (74.15=setup[7.60]+cmd[66.55] seconds) 13:32:25 tests_tapi: FAIL code 1 (1936.19=setup[6.80]+cmd[1929.39] seconds) 13:32:25 tests221: FAIL code 1 (115.49=setup[7.92]+cmd[107.58] seconds) 13:32:25 build_karaf_tests71: OK (74.50=setup[7.62]+cmd[66.88] seconds) 13:32:25 tests71: OK (700.08=setup[54.53]+cmd[645.56] seconds) 13:32:25 build_karaf_tests200: OK (74.50=setup[7.57]+cmd[66.93] seconds) 13:32:25 tests200: OK (360.44=setup[7.99]+cmd[352.44] seconds) 13:32:25 tests_hybrid: FAIL code 1 (118.79=setup[7.40]+cmd[111.38] seconds) 13:32:25 buildlighty: OK (28.43=setup[8.05]+cmd[20.38] seconds) 13:32:25 docs: OK (19.73=setup[16.34]+cmd[3.38] seconds) 13:32:25 docs-linkcheck: OK (20.29=setup[16.07]+cmd[4.21] seconds) 13:32:25 checkbashisms: OK (3.30=setup[2.03]+cmd[0.01,0.04,1.21] seconds) 13:32:25 pre-commit: OK (64.63=setup[3.69]+cmd[0.01,0.01,52.32,8.60] seconds) 13:32:25 pylint: OK (30.06=setup[3.27]+cmd[26.79] seconds) 13:32:25 evaluation failed :( (3463.17 seconds) 13:32:25 + tox_status=1 13:32:25 + echo '---> Completed tox runs' 13:32:25 ---> Completed tox runs 13:32:25 + for i in .tox/*/log 13:32:25 ++ echo .tox/build_karaf_tests121/log 13:32:25 ++ awk -F/ '{print $2}' 13:32:25 + tox_env=build_karaf_tests121 13:32:25 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 13:32:25 + for i in .tox/*/log 13:32:25 ++ echo .tox/build_karaf_tests200/log 13:32:25 ++ awk -F/ '{print $2}' 13:32:25 + tox_env=build_karaf_tests200 13:32:25 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 13:32:25 + for i in .tox/*/log 13:32:25 ++ echo .tox/build_karaf_tests221/log 13:32:25 ++ awk -F/ '{print $2}' 13:32:25 + tox_env=build_karaf_tests221 13:32:25 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/build_karaf_tests71/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=build_karaf_tests71 13:32:26 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/buildcontroller/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=buildcontroller 13:32:26 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/buildlighty/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=buildlighty 13:32:26 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/checkbashisms/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=checkbashisms 13:32:26 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/docs-linkcheck/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=docs-linkcheck 13:32:26 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/docs/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=docs 13:32:26 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/pre-commit/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=pre-commit 13:32:26 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/pylint/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=pylint 13:32:26 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/sims/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=sims 13:32:26 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/tests121/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=tests121 13:32:26 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/tests200/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=tests200 13:32:26 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/tests221/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=tests221 13:32:26 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/tests71/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=tests71 13:32:26 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/testsPCE/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=testsPCE 13:32:26 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/tests_hybrid/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=tests_hybrid 13:32:26 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 13:32:26 + for i in .tox/*/log 13:32:26 ++ echo .tox/tests_tapi/log 13:32:26 ++ awk -F/ '{print $2}' 13:32:26 + tox_env=tests_tapi 13:32:26 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 13:32:26 + DOC_DIR=docs/_build/html 13:32:26 + [[ -d docs/_build/html ]] 13:32:26 + echo '---> Archiving generated docs' 13:32:26 ---> Archiving generated docs 13:32:26 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:32:26 + echo '---> tox-run.sh ends' 13:32:26 ---> tox-run.sh ends 13:32:26 + test 1 -eq 0 13:32:26 + exit 1 13:32:26 ++ '[' 1 = 1 ']' 13:32:26 ++ '[' -x /usr/bin/clear_console ']' 13:32:26 ++ /usr/bin/clear_console -q 13:32:26 Build step 'Execute shell' marked build as failure 13:32:27 $ ssh-agent -k 13:32:27 unset SSH_AUTH_SOCK; 13:32:27 unset SSH_AGENT_PID; 13:32:27 echo Agent pid 1562 killed; 13:32:27 [ssh-agent] Stopped. 13:32:29 [PostBuildScript] - [INFO] Executing post build scripts. 13:32:29 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2816991952973729715.sh 13:32:29 ---> sysstat.sh 13:32:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6561878084318252658.sh 13:32:32 ---> package-listing.sh 13:32:32 ++ facter osfamily 13:32:32 ++ tr '[:upper:]' '[:lower:]' 13:32:32 + OS_FAMILY=debian 13:32:32 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 13:32:32 + START_PACKAGES=/tmp/packages_start.txt 13:32:32 + END_PACKAGES=/tmp/packages_end.txt 13:32:32 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:32:32 + PACKAGES=/tmp/packages_start.txt 13:32:32 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:32:32 + PACKAGES=/tmp/packages_end.txt 13:32:32 + case "${OS_FAMILY}" in 13:32:32 + dpkg -l 13:32:32 + grep '^ii' 13:32:32 + '[' -f /tmp/packages_start.txt ']' 13:32:32 + '[' -f /tmp/packages_end.txt ']' 13:32:32 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:32:32 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:32:32 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:32:32 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:32:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins26978852040335487.sh 13:32:32 ---> capture-instance-metadata.sh 13:32:32 Setup pyenv: 13:32:32 system 13:32:32 3.8.20 13:32:32 3.9.20 13:32:32 3.10.15 13:32:32 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:32:33 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YN9N from file:/tmp/.os_lf_venv 13:32:33 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:32:33 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:32:42 lf-activate-venv(): INFO: Base packages installed successfully 13:32:42 lf-activate-venv(): INFO: Installing additional packages: lftools 13:32:57 lf-activate-venv(): INFO: Adding /tmp/venv-YN9N/bin to PATH 13:32:57 INFO: Running in OpenStack, capturing instance metadata 13:32:57 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16420746353142047922.sh 13:32:57 provisioning config files... 13:32:57 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #5840 13:32:57 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config10547092326906855759tmp 13:32:58 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 13:32:58 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 13:32:58 provisioning config files... 13:32:58 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 13:32:58 [EnvInject] - Injecting environment variables from a build step. 13:32:58 [EnvInject] - Injecting as environment variables the properties content 13:32:58 SERVER_ID=logs 13:32:58 13:32:58 [EnvInject] - Variables injected successfully. 13:32:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins933755440349762248.sh 13:32:58 ---> create-netrc.sh 13:32:58 WARN: Log server credential not found. 13:32:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9861993425396407689.sh 13:32:58 ---> python-tools-install.sh 13:32:58 Setup pyenv: 13:32:58 system 13:32:58 3.8.20 13:32:58 3.9.20 13:32:58 3.10.15 13:32:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:32:58 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YN9N from file:/tmp/.os_lf_venv 13:32:58 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:32:58 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:33:00 lf-activate-venv(): INFO: Base packages installed successfully 13:33:00 lf-activate-venv(): INFO: Installing additional packages: lftools 13:33:12 lf-activate-venv(): INFO: Adding /tmp/venv-YN9N/bin to PATH 13:33:12 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins9667593713080996387.sh 13:33:12 ---> uv-install.sh 13:33:12 uv 0.11.27 is already installed 13:33:12 uvx 0.11.27 (x86_64-unknown-linux-gnu) 13:33:12 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5668096533445674310.sh 13:33:12 ---> sudo-logs.sh 13:33:12 Archiving 'sudo' log.. 13:33:13 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16865242272128423112.sh 13:33:13 ---> job-cost.sh 13:33:13 INFO: Activating Python virtual environment... 13:33:13 Setup pyenv: 13:33:13 system 13:33:13 3.8.20 13:33:13 3.9.20 13:33:13 3.10.15 13:33:13 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:33:13 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YN9N from file:/tmp/.os_lf_venv 13:33:13 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:33:13 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:33:16 lf-activate-venv(): INFO: Base packages installed successfully 13:33:16 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 13:33:24 lf-activate-venv(): INFO: Adding /tmp/venv-YN9N/bin to PATH 13:33:24 INFO: No stack-cost file found 13:33:24 INFO: Instance uptime: 3668s 13:33:24 INFO: Fetching instance metadata (attempt 1 of 3)... 13:33:24 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 13:33:24 INFO: Successfully fetched instance metadata 13:33:24 INFO: Instance type: v3-standard-4 13:33:24 INFO: Retrieving pricing info for: v3-standard-4 13:33:24 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 13:33:24 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=3668 13:33:24 INFO: Successfully fetched Vexxhost pricing API 13:33:24 INFO: Retrieved cost: 0.22 13:33:24 INFO: Retrieved resource: v3-standard-4 13:33:24 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 13:33:25 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 13:33:25 INFO: Successfully archived job cost data 13:33:25 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,5840,2026-07-07 13:33:25,v3-standard-4,3668,0.22,0.00,FAILURE 13:33:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins8508750260290075579.sh 13:33:25 ---> logs-deploy.sh 13:33:25 Setup pyenv: 13:33:25 system 13:33:25 3.8.20 13:33:25 3.9.20 13:33:25 3.10.15 13:33:25 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:33:25 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-YN9N from file:/tmp/.os_lf_venv 13:33:25 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:33:25 lf-activate-venv(): INFO: Attempting to install with network-safe options... 13:33:27 lf-activate-venv(): INFO: Base packages installed successfully 13:33:27 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 13:33:46 lf-activate-venv(): INFO: Adding /tmp/venv-YN9N/bin to PATH 13:33:46 WARNING: Nexus logging server not set 13:33:46 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/5840/ 13:33:46 INFO: archiving logs to S3 13:33:53 ---> uname -a: 13:33:53 Linux prd-ubuntu2204-docker-4c-16g-33704 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 13:33:53 13:33:53 13:33:53 ---> lscpu: 13:33:53 Architecture: x86_64 13:33:53 CPU op-mode(s): 32-bit, 64-bit 13:33:53 Address sizes: 40 bits physical, 48 bits virtual 13:33:53 Byte Order: Little Endian 13:33:53 CPU(s): 4 13:33:53 On-line CPU(s) list: 0-3 13:33:53 Vendor ID: AuthenticAMD 13:33:53 Model name: AMD EPYC-Rome Processor 13:33:53 CPU family: 23 13:33:53 Model: 49 13:33:53 Thread(s) per core: 1 13:33:53 Core(s) per socket: 1 13:33:53 Socket(s): 4 13:33:53 Stepping: 0 13:33:53 BogoMIPS: 5600.00 13:33:53 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 nrip_save umip rdpid arch_capabilities 13:33:53 Virtualization: AMD-V 13:33:53 Hypervisor vendor: KVM 13:33:53 Virtualization type: full 13:33:53 L1d cache: 128 KiB (4 instances) 13:33:53 L1i cache: 128 KiB (4 instances) 13:33:53 L2 cache: 2 MiB (4 instances) 13:33:53 L3 cache: 64 MiB (4 instances) 13:33:53 NUMA node(s): 1 13:33:53 NUMA node0 CPU(s): 0-3 13:33:53 Vulnerability Gather data sampling: Not affected 13:33:53 Vulnerability Indirect target selection: Not affected 13:33:53 Vulnerability Itlb multihit: Not affected 13:33:53 Vulnerability L1tf: Not affected 13:33:53 Vulnerability Mds: Not affected 13:33:53 Vulnerability Meltdown: Not affected 13:33:53 Vulnerability Mmio stale data: Not affected 13:33:53 Vulnerability Reg file data sampling: Not affected 13:33:53 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 13:33:53 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 13:33:53 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 13:33:53 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 13:33:53 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 13:33:53 Vulnerability Srbds: Not affected 13:33:53 Vulnerability Tsa: Not affected 13:33:53 Vulnerability Tsx async abort: Not affected 13:33:53 Vulnerability Vmscape: Not affected 13:33:53 13:33:53 13:33:53 ---> nproc: 13:33:53 4 13:33:53 13:33:53 13:33:54 ---> df -h: 13:33:54 Filesystem Size Used Avail Use% Mounted on 13:33:54 tmpfs 1.6G 1.1M 1.6G 1% /run 13:33:54 /dev/vda1 78G 17G 61G 22% / 13:33:54 tmpfs 7.9G 0 7.9G 0% /dev/shm 13:33:54 tmpfs 5.0M 0 5.0M 0% /run/lock 13:33:54 /dev/vda15 105M 6.1M 99M 6% /boot/efi 13:33:54 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 13:33:54 13:33:54 13:33:54 ---> free -m: 13:33:54 total used free shared buff/cache available 13:33:54 Mem: 15989 7135 3627 3 5226 8511 13:33:54 Swap: 1023 14 1009 13:33:54 13:33:54 13:33:54 ---> ip addr: 13:33:54 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 13:33:54 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 13:33:54 inet 127.0.0.1/8 scope host lo 13:33:54 valid_lft forever preferred_lft forever 13:33:54 inet6 ::1/128 scope host 13:33:54 valid_lft forever preferred_lft forever 13:33:54 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 13:33:54 link/ether fa:16:3e:3a:d8:5e brd ff:ff:ff:ff:ff:ff 13:33:54 altname enp0s3 13:33:54 inet 10.30.171.149/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 13:33:54 valid_lft 82710sec preferred_lft 82710sec 13:33:54 inet6 fe80::f816:3eff:fe3a:d85e/64 scope link 13:33:54 valid_lft forever preferred_lft forever 13:33:54 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 13:33:54 link/ether 0a:c8:56:0c:9a:83 brd ff:ff:ff:ff:ff:ff 13:33:54 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 13:33:54 valid_lft forever preferred_lft forever 13:33:54 inet6 fe80::8c8:56ff:fe0c:9a83/64 scope link 13:33:54 valid_lft forever preferred_lft forever 13:33:54 13:33:54 13:33:54 ---> sar -b -r -n DEV: 13:33:54 Linux 5.15.0-174-generic (prd-ubuntu2204-docker-4c-16g-33704) 07/07/26 _x86_64_ (4 CPU) 13:33:54 13:33:54 12:32:25 LINUX RESTART (4 CPU) 13:33:54 13:33:54 12:40:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 13:33:54 12:50:05 33.97 1.77 30.58 1.62 89.27 2733.03 1079.21 13:33:54 13:00:05 11.08 0.39 10.15 0.54 3.64 303.71 579.12 13:33:54 13:10:01 7.71 0.01 7.33 0.37 0.66 266.41 399.62 13:33:54 13:20:05 39.99 19.46 19.44 1.09 162.44 1936.94 607.17 13:33:54 13:30:05 31.77 18.77 12.22 0.78 154.04 1304.46 1514.92 13:33:54 Average: 24.96 8.10 15.98 0.88 82.25 1313.10 836.61 13:33:54 13:33:54 12:40:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 13:33:54 12:50:05 154604 5158512 10770344 65.78 246400 4639176 11761924 67.51 2143996 13389720 280 13:33:54 13:00:05 2147964 7142748 8787316 53.67 247968 4628940 9542244 54.77 2178236 11360072 808 13:33:54 13:10:01 4665468 9683072 6248992 38.17 249524 4650384 7009744 40.24 2185272 8844196 320 13:33:54 13:20:05 237848 4754804 11175248 68.25 262624 4160092 12439864 71.40 2324180 13139540 448 13:33:54 13:30:05 1453960 6289696 9641216 58.88 271728 4466744 10762032 61.77 2470144 11791888 396 13:33:54 Average: 1731969 6605766 9324623 56.95 255649 4509067 10303162 59.14 2260366 11705083 450 13:33:54 13:33:54 12:40:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 13:33:54 12:50:05 lo 18.58 18.58 11.10 11.10 0.00 0.00 0.00 0.00 13:33:54 12:50:05 ens3 1.37 1.17 0.35 0.30 0.00 0.00 0.00 0.00 13:33:54 12:50:05 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:33:54 13:00:05 lo 30.10 30.10 13.32 13.32 0.00 0.00 0.00 0.00 13:33:54 13:00:05 ens3 1.15 1.04 0.32 1.05 0.00 0.00 0.00 0.00 13:33:54 13:00:05 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:33:54 13:10:01 lo 17.16 17.16 7.77 7.77 0.00 0.00 0.00 0.00 13:33:54 13:10:01 ens3 0.58 0.44 0.12 0.09 0.00 0.00 0.00 0.00 13:33:54 13:10:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:33:54 13:20:05 lo 11.75 11.75 10.94 10.94 0.00 0.00 0.00 0.00 13:33:54 13:20:05 ens3 1.90 1.54 0.53 1.41 0.00 0.00 0.00 0.00 13:33:54 13:20:05 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:33:54 13:30:05 lo 10.90 10.90 5.81 5.81 0.00 0.00 0.00 0.00 13:33:54 13:30:05 ens3 0.76 0.67 0.21 0.18 0.00 0.00 0.00 0.00 13:33:54 13:30:05 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:33:54 Average: lo 17.69 17.69 9.80 9.80 0.00 0.00 0.00 0.00 13:33:54 Average: ens3 1.15 0.97 0.31 0.61 0.00 0.00 0.00 0.00 13:33:54 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:33:54 13:33:54 13:33:54 ---> sar -P ALL: 13:33:54 Linux 5.15.0-174-generic (prd-ubuntu2204-docker-4c-16g-33704) 07/07/26 _x86_64_ (4 CPU) 13:33:54 13:33:54 12:32:25 LINUX RESTART (4 CPU) 13:33:54 13:33:54 12:40:01 CPU %user %nice %system %iowait %steal %idle 13:33:54 12:50:05 all 41.01 0.00 1.43 0.10 0.10 57.36 13:33:54 12:50:05 0 40.58 0.00 1.46 0.05 0.10 57.80 13:33:54 12:50:05 1 41.14 0.00 1.29 0.08 0.11 57.37 13:33:54 12:50:05 2 42.53 0.00 1.61 0.11 0.10 55.64 13:33:54 12:50:05 3 39.79 0.00 1.36 0.14 0.10 58.61 13:33:54 13:00:05 all 23.90 0.00 0.88 0.04 0.09 75.09 13:33:54 13:00:05 0 23.22 0.00 0.81 0.04 0.09 75.83 13:33:54 13:00:05 1 24.04 0.00 0.85 0.03 0.10 74.98 13:33:54 13:00:05 2 24.11 0.00 0.95 0.06 0.09 74.79 13:33:54 13:00:05 3 24.22 0.00 0.90 0.03 0.09 74.76 13:33:54 13:10:01 all 17.90 0.00 0.75 0.13 0.09 81.14 13:33:54 13:10:01 0 17.06 0.00 0.66 0.02 0.08 82.18 13:33:54 13:10:01 1 18.13 0.00 0.77 0.29 0.09 80.71 13:33:54 13:10:01 2 18.47 0.00 0.88 0.10 0.09 80.46 13:33:54 13:10:01 3 17.92 0.00 0.68 0.11 0.08 81.21 13:33:54 13:20:05 all 23.04 0.00 0.87 0.17 0.09 75.83 13:33:54 13:20:05 0 23.22 0.00 0.84 0.11 0.08 75.75 13:33:54 13:20:05 1 22.66 0.00 0.85 0.13 0.09 76.27 13:33:54 13:20:05 2 23.18 0.00 0.96 0.05 0.09 75.72 13:33:54 13:20:05 3 23.12 0.00 0.81 0.38 0.09 75.59 13:33:54 13:30:05 all 14.50 0.00 0.66 4.32 0.09 80.43 13:33:54 13:30:05 0 14.29 0.00 0.60 4.22 0.11 80.78 13:33:54 13:30:05 1 14.93 0.00 0.63 1.86 0.09 82.50 13:33:54 13:30:05 2 14.57 0.00 0.79 9.58 0.09 74.96 13:33:54 13:30:05 3 14.19 0.00 0.63 1.61 0.08 83.48 13:33:54 Average: all 24.10 0.00 0.92 0.95 0.09 73.94 13:33:54 Average: 0 23.71 0.00 0.87 0.88 0.09 74.44 13:33:54 Average: 1 24.21 0.00 0.88 0.48 0.10 74.34 13:33:54 Average: 2 24.60 0.00 1.04 1.97 0.09 72.29 13:33:54 Average: 3 23.88 0.00 0.88 0.45 0.09 74.70 13:33:54 13:33:54 13:33:54