Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07c0dc8

Browse files
committed
backend_driver: suppress "invalid value" warnings
svn path=/trunk/matplotlib/; revision=8363
1 parent 4385d53 commit 07c0dc8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/tests/backend_driver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ def drive(backend, directories, python=['python'], switches = []):
360360
'import matplotlib\n',
361361
'matplotlib.use("%s")\n' % backend,
362362
'from pylab import savefig\n',
363+
'import numpy\n',
364+
'numpy.seterr(invalid="ignore")\n',
363365
))
364366
for line in file(fullpath):
365367
line_lstrip = line.lstrip()

0 commit comments

Comments
 (0)