Closed hrnciar closed 5 months ago
Please use either the test tools test runner or the native python test runner (unittest)
We're open to PRs that improve support for running the test with third party runners like pytest, but it's not a priority for the project.
See also #332
Details why this happens is found here https://github.com/pytest-dev/pytest/issues/12263#issuecomment-2081434468
Hello,
we are using pytest for running bandit and python-etcd3gw tests. Since pytest 8 the tests are failing with
AttributeError: 'XXX' object has no attribute 'runTest'. Did you mean: 'subTest'?
See:https://download.copr.fedorainfracloud.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07388287-bandit/builder-live.log.gz
https://download.copr.fedorainfracloud.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07424137-python-etcd3gw/builder-live.log.gz
Reproducer: