Bug 1761169 - pytest-asyncio appears to require a newer version of pytest
Summary: pytest-asyncio appears to require a newer version of pytest
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python3-pytest-asyncio
Version: epel8
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Julien Enselme
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-13 02:49 UTC by Orion Poplawski
Modified: 2019-10-29 00:42 UTC (History)
2 users (show)

Fixed In Version: python3-pytest-asyncio-0.10.0-1.el8.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-29 00:42:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.