-
-
Notifications
You must be signed in to change notification settings - Fork 448
Test with coverage freeze at a specific test file on Python 3.10.a7 #1151
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
Comments
Thanks for the report. Could you give me very specific instructions about how to run the tests? I tried cloning the pandas repo, installing pytest and coverage. Then I ran your test command, and got:
|
BTW, where did you get a Python that claims to be 3.10.0.beta.1? That doesn't exist yet. |
Thanks for taking a look at this! @nedbat Cloning the repo, and inside a venv with Python 3.10
GitHub Action pull the py310-dev from https://github.com/actions/python-versions/releases. And the latest version is |
Just so you know, there is no 3.10 beta yet: actions/setup-python#207 |
Thanks for the steps. Once I finally got numpy installed on my Mac, I ran your command and all the tests were skipped, because of the 3.10 skip in test_pandas.py. For others trying to reproduce this, it will help to create a branch in the pandas repo without that line. When I commented out the skip, the tests ran, but crashed instead of hung:
Any idea why? |
Has this improved with the later 3.10 betas? |
The root cause of this problem is a segfault from pandas' json extension on Python 3.10 (pandas-dev/pandas#42130). When testing locally, we can see the segfault directly. But it somehow froze the CI when running with coverage. Right now that segfault is magically disappeared. We haven't looked into it yet. |
It sounds like pandas fixed an issue? Feel free to reopen this if it comes back. |
Describe the bug
pandas started testing against Python 3.10.beta.1. pandas-dev/pandas#41113. While working on the CI, we found that running the coverage with
pytest-cov
would cause the test step to freeze immediately after start. But if use coveragepy directly, the test would freeze at a specific test file https://github.com/pandas-dev/pandas/blob/master/pandas/tests/io/json/test_pandas.py. For now, we skipped the whole file to make the CI green. This only happens on Python 3.10To Reproduce
Build Version
Output of
pip list
Test command
Expected behavior
No freeze.
The text was updated successfully, but these errors were encountered: