sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.35k stars 460 forks source link

random doctest error in src/sage/plot/plot.py #35470

Open dcoudert opened 1 year ago

dcoudert commented 1 year ago

Is there an existing issue for this?

Did you read the documentation and troubleshoot guide?

Environment

- **OS**:macOS 12.6.3
- **Sage Version**: 10.0.beta8

Steps To Reproduce

./sage -t --random-seed=4353858841104478676567296645844421851 src/sage/plot/plot.py

File "src/sage/plot/plot.py", line 1824, in sage.plot.plot.plot Failed example: plot(f, (x, -3.5, 3.5), detect_poles='show', exclude=[-3..3], ymin=-5, ymax=5)

Expected Behavior

Graphics object consisting of 12 graphics primitives

Actual Behavior

Graphics object consisting of 13 graphics primitives

Additional Information

Part of #32544

tobiasdiez commented 8 months ago

Also happens on linux: https://github.com/sagemath/sage/actions/runs/7515998342/job/20460584601

tornaria commented 4 months ago

Another instance of the same:

sage -t --warn-long 10.0 --random-seed=251246844545729201890491297510531298883 /usr/lib/python3.12/site-packages/sage/plot/plot.py
**********************************************************************
File "/usr/lib/python3.12/site-packages/sage/plot/plot.py", line 1855, in sage.plot.plot.plot
Failed example:
    plot(f, (x, -3.5, 3.5), detect_poles='show', exclude=[-3..3],
         ymin=-5, ymax=5)
Expected:
    Graphics object consisting of 12 graphics primitives
Got:
    Graphics object consisting of 13 graphics primitives
**********************************************************************
tornaria commented 4 months ago

Also, this seems a duplicate of #34772 and #33129