test_utils.py uninstalls numpy
Open
Nobody has claimed this yet.
P2
testing
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
In #4622, I encountered a very odd recursion error, and the solution was to move the test that was failing to the top of the file. This was because the test above it was uninstalling numpy. We should investigate why this test is even doing that and potentially change the approach to prevent similar issues.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py around lines 453–465 and compare it with the test moved in PR #4622. Determine why the test uninstalls numpy, then verify that the revised approach prevents the recursion error and does not disturb other optional tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100