Skip to content

Can't import _pytest.python.transfer_markers #106

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
ln-nicolas opened this issue Jan 6, 2019 · 3 comments
Closed

Can't import _pytest.python.transfer_markers #106

ln-nicolas opened this issue Jan 6, 2019 · 3 comments
Labels

Comments

@ln-nicolas
Copy link

Hello,

I have pytest 4.1.0 installed, and after installing pytest-asyncio i got this error trying to run pytest

  File "/usr/local/lib/python3.5/dist-packages/pytest_asyncio/plugin.py", line 8, in <module>
    from pytest.python import transfer_markers
ImportError: cannot import name 'transfer_markers'

I bypassed this problem installing pytest 4.0.2

pip install pytest==4.0.2

But i think it still a bug for the 4.1.0 version

Best regards

@RonnyPfannschmidt
Copy link
Member

this is a bug in pytest_asyncio

marker transfer was never a public api, and it got removed as it created broken data all over the place
the import line looks edited, as transfer_markers can only be imported from the internals of pytest

@RonnyPfannschmidt RonnyPfannschmidt transferred this issue from pytest-dev/pytest Jan 6, 2019
@RonnyPfannschmidt
Copy link
Member

i just recalled i should actually move it

@Tadaboody
Copy link
Contributor

Duplicate of #104

@Tadaboody Tadaboody marked this as a duplicate of #104 Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants