Replies: 3 comments
-
Can you please provide a reproducer? |
Beta Was this translation helpful? Give feedback.
-
Hola @pablogsal, I am facing the same issue: the async tests are skipped if we pass Steps to reproduce the issue:Use the following test file: import pytest
@pytest.fixture
def anyio_backend():
return 'asyncio'
@pytest.mark.anyio
async def test_async():
assert True Install required dependencies: python -m pip install pytest anyio pytest-memray The test runs as expected if python -m pytest -vv -x test_async.py Output:
However, the test is skipped if we pass python -m pytest --memray -vv -x test_async.py Output:
|
Beta Was this translation helpful? Give feedback.
-
This definitely seems like a bug, now that we've got a reproduction example. I've opened issue #119 for it. |
Beta Was this translation helpful? Give feedback.
-
I have a lot of testcases that run fine. We are trying to add
memray
to our CI/CD but when we tried installing it and running the tests with--memray
it started skipping all the testcases!I tried running these with
-rsx
flag as well, this is the reason it throws for skipping the tests:Reminder that these test cases otherwise run fine since forever. Is there any other prerequisite for integrating
pytest-memray
?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions