Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1734775
Summary: | python-dateutil fails to build with in Fedora 31 (rawhide) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-dateutil | Assignee: | Haïkel Guémar <karlthered> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | gwync, igor.raits, jspaleta, karlthered, pj.pandit, pviktori, python-sig, steve.traylen, tomspur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-12 23:29:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1700317, 1686977, 1732841 |
Description
Miro Hrončok
2019-07-31 12:10:17 UTC
BuildRequiring python3-pytest-cov should solve the symptoms, but I don't like the underlying issue: it seems that Pytest will now complain if tests contain coverage markers, but the coverage plugin is not available. We generally don't want want to run coverage and linters in %check of distro packages. We might need a more systematic solution to this problem. https://docs.pytest.org/en/latest/changelog.html pytest 4.5.0 added: #5023: New flag --strict-markers that triggers an error when unknown markers (e.g. those not registered using the markers option in the configuration file) are used in the test suite. I'm searching when this became the default (or if dateutil uses this or --scrict that implies it). https://docs.pytest.org/en/latest/mark.html "Unregistered marks applied with the @pytest.mark.name_of_the_mark decorator will always emit a warning..." This is indeed a warning: _pytest.warning_types.PytestUnknownMarkWarning Something is turning it into an error. Adding this to %prep workarounds the issue: cat > pytest.ini << EOF [pytest] markers = no_cover EOF This also workarounds the issue: %{__python3} -m pytest -W ignore::pytest.PytestUnknownMarkWarning I've pushed the workaround: %{__python3} -m pytest -W ignore::pytest.PytestUnknownMarkWarning |