Skip to content

Conversation

@logan-markewich
Copy link
Collaborator

As flagged by Adrian here, pytest_asyncio is an implicit dependency

AFAIK there was not an easy way to force pants to install this for every package that needs it besides importing it, so I scripted a change to add the imports needed.

Now, async tests will properly run in pants

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 3, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Apr 3, 2025
@logan-markewich
Copy link
Collaborator Author

Hmm, something is broken for python 3.9, will need to investigate

@logan-markewich
Copy link
Collaborator Author

Ok, python3.9 does not like some of the ways our tests were working with async

Disabling some problematic tests for python3.9. While this is not ideal, workflows generally work with python3.9 (and this version of python is being deprecated later this year anyways)

@logan-markewich logan-markewich merged commit 29ad791 into main Apr 4, 2025
11 checks passed
@logan-markewich logan-markewich deleted the logan/fix_asyncio_dep_in_tests branch April 4, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants