From 8997cfa07c7a0ff4209f60702b028a81f46e14ca Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Sat, 5 Jun 2021 12:48:08 +0800 Subject: [PATCH] test the QPolygonF codepath --- tests/graphicsItems/test_PlotCurveItem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/graphicsItems/test_PlotCurveItem.py b/tests/graphicsItems/test_PlotCurveItem.py index 9c51a4a0..c97811cc 100644 --- a/tests/graphicsItems/test_PlotCurveItem.py +++ b/tests/graphicsItems/test_PlotCurveItem.py @@ -25,6 +25,9 @@ def test_PlotCurveItem(): c.setData(data, connect='finite') assertImageApproved(p, 'plotcurveitem/connectfinite', "Plot curve with finite points connected.") + + c.setData(data, connect='finite', skipFiniteCheck=True) + assertImageApproved(p, 'plotcurveitem/connectfinite', "Plot curve with finite points connected using QPolygonF.") c.setData(data, connect=np.array([1,1,1,0,1,1,0,0,1,0,0,0,1,1,0,0])) assertImageApproved(p, 'plotcurveitem/connectarray', "Plot curve with connection array.")