For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:pytest/openSUSE_Tumbleweed/devel:languages:python:pytest.repo
zypper refresh
zypper install python-pytest-listener
For openSUSE Factory zSystems run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:pytest/openSUSE_Factory_zSystems/devel:languages:python:pytest.repo
zypper refresh
zypper install python-pytest-listener
For openSUSE Factory PowerPC run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:pytest/openSUSE_Factory_PowerPC/devel:languages:python:pytest.repo
zypper refresh
zypper install python-pytest-listener
For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:python:pytest/15.6/devel:languages:python:pytest.repo
zypper refresh
zypper install python-pytest-listener