https://bugzilla.redhat.com/show_bug.cgi?id=1812857



--- Comment #15 from Miro HronĨok <mhron...@redhat.com> ---
(In reply to Fabien Boucher from comment #14)
> Actually it worked this way, so I've fixed the spec with.
> PYTHONPATH=. pytest

Try:

%{python3} -m pytest


Docs:
https://docs.pytest.org/en/latest/usage.html#calling-pytest-through-python-m-pytest

Benefits:

 - you get PYTHONPATH=. automatically
 - the pytest is invoked with the proper Python version regardless of what
/usr/bin/pytest happens to be (it usually matches, but might not e.g. on RHEL
with multiple Python versions)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@lists.fedoraproject.org
To unsubscribe send an email to package-review-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/package-review@lists.fedoraproject.org

Reply via email to