Skip to content
Merged
Prev Previous commit
Next Next commit
Suppress deprecation warning for Delaunay module in the test suite
  • Loading branch information
jenshnielsen committed Jul 26, 2014
commit 57040ac2be7d2c0196050929819ec2bc27e27311
8 changes: 7 additions & 1 deletion lib/matplotlib/tests/test_delaunay.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@

import six
from six.moves import xrange
import warnings

import numpy as np
from matplotlib.testing.decorators import image_comparison, knownfailureif
from matplotlib.delaunay.triangulate import Triangulation
from matplotlib.cbook import MatplotlibDeprecationWarning

with warnings.catch_warnings():
# the module is deprecated. The tests should be removed when the module is.
warnings.simplefilter('ignore', MatplotlibDeprecationWarning)
from matplotlib.delaunay.triangulate import Triangulation
from matplotlib import pyplot as plt
import matplotlib as mpl

Expand Down