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

Skip to content

Commit 7bdeaa3

Browse files
author
Ralf Gommers
committed
TST: also filter Cython warnings in NoseTester. See PR-432.
There a resetwarnings() call, so need to add back these filters.
1 parent fa3f5a1 commit 7bdeaa3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

numpy/testing/nosetester.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ def test(self, label='fast', verbose=1, extra_argv=None,
365365
warnings.filterwarnings('error', category=warningtype)
366366
# Filter out annoying import messages.
367367
warnings.filterwarnings('ignore', message='Not importing directory')
368+
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
369+
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
368370

369371
try:
370372
from noseclasses import NumpyTestProgram

0 commit comments

Comments
 (0)