plotly / plotly/plotly.py

test_utils.py uninstalls numpy

Open
#4,852 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.