LegendItem: Enable customization of label text size and tests#1397
LegendItem: Enable customization of label text size and tests#1397j9ac9k merged 7 commits intopyqtgraph:masterfrom
Conversation
|
Looks like I got trapped. The test is cracking locally even without changes to the LegendItem. I have to check |
Rebase ...
|
well, that's an odd test failure; only PyQt5 pipelines failing ....looks like something actually crashed during I'm able to replicate the issue locally: Running `pytest -k "test_ROI" does lead to an assertion failure... |
|
I'm getting this same failure on master, so a PR must have snuck in that's causing havok... |
|
I think I identified the issue in the library code, no clue how it went so long un-noticed! ...After I merge #1399, I'll re-run the pipeline (you may need to rebase your branch, I'm not sure...) |
fe9d035 to
d1d5e39
Compare
d1d5e39 to
ac639ca
Compare
|
Thanks, but it is not fully fixed :( It still crashes in the poly ROI test |
This is soooo wired! |
|
well.... this is alarming: |
|
Following up a bit; looks like these two tests, when run together are triggering some kind of segfault I want to thank @asottile for showing me this debug method a little over a year ago in an unrelated issue. Looking at your test more closely, you should not have this line: app.deleteLater()I commented out that line and the test suite ran fine for me. |
|
Thanks for debugging my tests! Pipeline is passing now |
|
Thanks for updating the PR @dgoeries those segfaults are really annoying to troubleshoot, I'm just happy the issue was straight forward to spot. I added one more comment, that instead of having an assert check to make sure the right type, do an if statement, and perhaps emit a warning message and return None without attempting to modify the size. Alternatively you can just not do any checks and hope that whatever error handling Labeltem does would be sufficient (which I think would be fine too). |
|
The error handling in the LabelItem is okay, it will throw. Changes were made, thanks for the review and help |
|
no problem, thanks for the PR, the build_docs stage will fail (for unrelated reasons), so don't worry about. Assuming everything else is good, I'll merge. Thanks again |
|
LGTM, thanks for the PR, merging. |
|
Thanks, I will have two more PR's for the legend. :-) |
This improves a little bit the customization of the LegendItem.