Bug 1788811

Summary: python-pytest-cov fails to build with Python 3.9
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-pytest-covAssignee: Miro Hrončok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, mhroncok, orion, piotr1212, ttomecek
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: 2020-01-18 19:20:39 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: 1785415    

Description Miro Hrončok 2020-01-08 07:26:49 UTC
python-pytest-cov fails to build with Python 3.9.0a2.

____________________________ test_contexts[nodist] _____________________________
/builddir/build/BUILD/pytest-cov-2.8.1/tests/test_pytest_cov.py:2011: in test_contexts
    assert line_data[label] == actual, "Wrong lines for context {!r}".format(context)
E   AssertionError: Wrong lines for context 'test_contexts.py::OldStyleTests::test_03|run'
E   assert [28, 31, 34, 35] == [34, 35, 28, 31]
E     At index 0 diff: 28 != 34
E     Full diff:
E     - [28, 31, 34, 35]
E     + [34, 35, 28, 31]

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01140922-python-pytest-cov/

For all our attempts to build python-pytest-cov with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-pytest-cov/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33, but the initial bootstrapping has already started.
A build failure this early in the bootstrap sequence blocks us very much.

Comment 1 Charalampos Stratakis 2020-01-08 14:06:44 UTC
This can be fixed by backporting https://github.com/pytest-dev/pytest-cov/commit/32d8c0665ea044f9682a89633d75442d1a4d2dc4

Comment 2 Miro Hrončok 2020-01-18 19:20:39 UTC
Pushed to dist git.