Skip to content

test_PlotCurveItem: unset skipFiniteCheck for next test#2313

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:sticky_options
May 26, 2022
Merged

test_PlotCurveItem: unset skipFiniteCheck for next test#2313
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:sticky_options

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented May 26, 2022

test_PlotCurveItem.py has a bug as follows:

At the time (8997cfa) of the addition of the 2nd last test with skipFiniteCheck=True, skipFiniteCheck was not a sticky option. Thus, the last test automatically reverts to skipFiniteCheck=False.

Since the other options of PlotCurveItem were sticky in nature, for consistency, 21d77db changed skipFiniteCheck to also be a sticky option. This made the last test to be run with skipFiniteCheck=True even though it was intended to be executed with skipFiniteCheck=False.

Note: With the bug, a blank image actually gets generated for the last test but due to the low number of "on" pixels in the reference image, it passes the tolerance test.

options passed into setData() are sticky
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 26, 2022

Nice catch @pijyoi Thanks for the PR!

@j9ac9k j9ac9k merged commit 6b51ac5 into pyqtgraph:master May 26, 2022
@pijyoi pijyoi deleted the sticky_options branch May 26, 2022 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants