From 11105a594221afad3118627df8b80c9556745ab1 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Thu, 18 Jul 2019 10:13:42 +0100 Subject: [PATCH] Fix a test that fails with NumPy 1.16.x. --- chaco/tools/tests/test_range_selection.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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])