Hi Ben, On 25.09.22 at 19:25 Ben Greiner wrote:
Putting aside that the issue reporter has a history of spamming issue trackers of various packages without knowing what he is doing, the answer by the package author gives a hint: jsonschema is not to be tested with pytest directly.
That I understood.
Unfortunately, using tox is not viable in an rpm package either, because tox installs everything in a separate testing environment. Your local tests (with online access I assume) work, in obs it is not able to download the needed packages.
That I found out.
Have a look at tox.ini: The crucial call is here:
https://github.com/python-jsonschema/jsonschema/blob/ee024ffc61bee56b25e816f...
tests,coverage,codecov: {envpython} -Werror -W"ignore:module 'sre_constants' is deprecated:DeprecationWarning"-m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
So tox does not call pytest but uses twisted.trial
Now that you explained it it makes a little sense to me... :-)
See sr#1005905
Thanks a lot for your help, I would never have gotten that together with my limited python packaging skills. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537