-
Notifications
You must be signed in to change notification settings - Fork 3
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
Disabling bytecode generation #7
Comments
Oh, wow, that sounds incredible! Could you tell me more about the specific use case? Ideally, we'd have a large repo of dummy/generated code that we can run pytest again, with |
It's not that hard to reproduce. I've tried to think of a decent large Python project using pytest, and sqlalchemy came to mind:
Basically, if you had Note that there is a workaround: instead of using pytest pattern matching for test names, you can specifically call out to |
FWIW, I've seen significant speedups, especially with pytest, on large codebases when bytecode generation is enabled.
The nitty gritty details are that:
pytest --collect
to 15s for this particular codebase.So if you are after fast pytest runs, especially for single test runs, I'd revisit the advise on
PYTHONDONTWRITEBYTECODE
.The text was updated successfully, but these errors were encountered: