Bug 1761169

Summary: pytest-asyncio appears to require a newer version of pytest
Product: [Fedora] Fedora EPEL Reporter: Orion Poplawski <orion>
Component: python3-pytest-asyncioAssignee: Julien Enselme <jujens>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel8CC: jujens, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python3-pytest-asyncio-0.10.0-1.el8.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-29 00:42:09 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:

Description Orion Poplawski 2019-10-13 02:49:49 UTC
Description of problem:

Trying to build python-autobahn for EPEL8 I'm getting the following error:

________ ERROR at setup of TestNvxUtf8Validator.test_nvx_utf8validator _________
item = <TestCaseFunction 'test_nvx_utf8validator'>
    def pytest_runtest_setup(item):
        for marker, fixture in _markers_2_fixtures.items():
            if marker in item.keywords and fixture not in item.fixturenames:
                # inject an event loop fixture for all async tests
                item.fixturenames.append(fixture)
>       if item.get_closest_marker("asyncio") is not None:
E       AttributeError: 'TestCaseFunction' object has no attribute 'get_closest_marker'
/usr/lib/python3.6/site-packages/pytest_asyncio/plugin.py:184: AttributeError

Near as I can tell this may have been added in pytest 3.6.  EL8 has 3.4.2.

Version-Release number of selected component (if applicable):
python3-pytest-asyncio-0.10.0-1.el8.1.noarch

Comment 1 Miro Hrončok 2019-10-13 09:54:26 UTC
sed s/get_closest_marker/get_marker/

Comment 2 Fedora Update System 2019-10-13 16:00:19 UTC
FEDORA-EPEL-2019-54c80d6ed6 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-54c80d6ed6

Comment 3 Orion Poplawski 2019-10-13 16:01:01 UTC
(In reply to Miro Hrončok from comment #1)
> sed s/get_closest_marker/get_marker/

Thanks!

Comment 4 Fedora Update System 2019-10-14 16:15:11 UTC
python-pytest-tornado-0.8.0-4.el8, python3-pytest-asyncio-0.10.0-1.el8.2 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-54c80d6ed6

Comment 5 Fedora Update System 2019-10-29 00:42:09 UTC
python-pytest-tornado-0.8.0-4.el8, python3-pytest-asyncio-0.10.0-1.el8.2 has been pushed to the Fedora EPEL 8 stable repository. If problems still persist, please make note of it in this bug report.