Skip to content

Commit 62cb267

Browse files
committed
test_mask_tool: fix blocking popup during test
1 parent be02212 commit 62cb267

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plotpy/tests/unit/test_mask_tool.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def test_image_mask_tool(shape_tool_cls: type[RectangularShapeTool], inside: boo
4949
with execenv.context(accept_dialogs=True):
5050
shape_tool.add_shape_to_plot(plot, pos0, pos1)
5151
mask_tool.apply_mask()
52-
mask_tool.clear_mask()
52+
53+
# Clear mask
54+
item.unmask_all()
55+
plot.replot()
5356

5457
shape_tool.add_shape_to_plot(plot, pos0, pos1)
5558
mask_tool.remove_shapes()

0 commit comments

Comments
 (0)