Skip to content

transfer_markers missing from pytest_asyncio #4612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
IgorJakovljevic opened this issue Jan 7, 2019 · 2 comments
Closed

transfer_markers missing from pytest_asyncio #4612

IgorJakovljevic opened this issue Jan 7, 2019 · 2 comments

Comments

@IgorJakovljevic
Copy link

From the version 4.1.0 we are getting errors in our test cases that the transfer markers are no longer part of the pytest_asyncio.

The only solution provided for this is to revert back to the previous version:
https://stackoverflow.com/questions/54064971/importerror-cannot-import-name-transfer-markers-when-testing-with-pytest

We are experiencing this issue in the bitbucket pipelines running a Linux system. Also, locally in the WSL environment. Python version is 3.6

import pytest
@pytest.mark.asyncio()
async def test_asyncio():
    x = 1
    assert x == 1

The error that we get is the following:

from _pytest.python import transfer_markers
ImportError: cannot import name 'transfer_markers'
@blueyed
Copy link
Contributor

blueyed commented Jan 7, 2019

@RonnyPfannschmidt closed a similar issue somewhere already, but I could not find it now.

@blueyed
Copy link
Contributor

blueyed commented Jan 7, 2019

Duplicate of pytest-dev/pytest-asyncio#104.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants