Skip to content

Commit

Permalink
Merge pull request #471 from enthought/fix/warning-filtering-in-test
Browse files Browse the repository at this point in the history
Fix a test that fails with NumPy 1.16.x.
  • Loading branch information
Joris Vankerschaver authored Jul 18, 2019
2 parents 785f180 + 11105a5 commit 047714a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chaco/tools/tests/test_range_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 047714a

Please sign in to comment.