| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Added a minimal smoketest for draw_rubberband. |
Sorry, something went wrong.
Locally (Arch standard packages), it otherwise fails with
File "/usr/lib/python3.10/site-packages/wx/core.py", line 1098, in _DC_DrawLineList
return self._DrawLineList(lines, pens, [])
TypeError: 'numpy.float64' object cannot be interpreted as an integer
|
|
||
| ax.plot([0, 1], [2, 3]) | ||
| if fig.canvas.toolbar: # i.e toolbar2. | ||
| fig.canvas.toolbar.draw_rubberband(None, 1., 1, 2., 2) |
There was a problem hiding this comment.
codecov claims this line isn't being tested - is that a CI issue or is the if statement never being executed anywhere?
Sorry, something went wrong.
There was a problem hiding this comment.
At least locally, I can confirm that this is indeed executed...
Sorry, something went wrong.
There was a problem hiding this comment.
This line is run for all backends, and we skip a few, so it seems to be referring to that.
Sorry, something went wrong.
…990-on-v3.5.x Backport PR #21990 on branch v3.5.x (Fix rubberbanding on wx+py3.10.)
| Back | FazBrowse Home | New Git URL |
Locally (Arch standard packages), it otherwise fails with
File "/usr/lib/python3.10/site-packages/wx/core.py", line 1098, in _DC_DrawLineList
return self._DrawLineList(lines, pens, [])
TypeError: 'numpy.float64' object cannot be interpreted as an integer
Likely the same root cause as #19395.
PR Summary
PR Checklist
Tests and Styling
Documentation