diff --git a/chaco/tools/tests/test_range_selection.py b/chaco/tools/tests/test_range_selection.py index 326bedb66..bb9c7f45d 100644 --- a/chaco/tools/tests/test_range_selection.py +++ b/chaco/tools/tests/test_range_selection.py @@ -61,9 +61,10 @@ def test_selection_no_warning(self): renderer = plot.plot(('x', 'y'))[0] tool = RangeSelection(renderer) with warnings.catch_warnings(record=True) as w: - # Ignore warnings coming from Traits + # Ignore warnings coming from any package other than Chaco warnings.filterwarnings( - "ignore", 'elementwise == comparison failed' + "ignore", + module="(?!chaco)", ) tool.selection = np.array([2.0, 3.0])