8000 Ignore finance deprecation when testing pylab. · matplotlib/matplotlib@580e1e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 580e1e3

Browse files
committed
Ignore finance deprecation when testing pylab.
1 parent afb44bd commit 580e1e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/matplotlib/tests/test_basic.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33

44
import six
55

6+
import warnings
7+
68
from nose.tools import assert_equal
79

10+
from matplotlib.cbook import MatplotlibDeprecationWarning
811
from matplotlib.testing.decorators import knownfailureif
9-
from pylab import *
12+
with warnings.catch_warnings():
13+
warnings.filterwarnings('ignore',
14+
'The finance module has been deprecated in mpl 2',
15+
MatplotlibDeprecationWarning)
16+
from pylab import *
1017

1118

1219
def test_simple():

0 commit comments

Comments
 (0)
0