10000 ignore cython warnings in init · convexset/numpy@15b7ecd · GitHub
[go: up one dir, main page]

Skip to content

Commit 15b7ecd

Browse files
author
Jeremy Manning
committed
ignore cython warnings in init
1 parent 74fdbc7 commit 15b7ecd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

numpy/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ def pkgload(*packages, **options):
179179
__all__.extend(lib.__all__)
180180
__all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma'])
181181

182+
# Filter out Cython harmless warnings
183+
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
184+
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
185+
warnings.filterwarnings("ignore", message="numpy.ndarray size changed")
186+
182187
# oldnumeric and numarray were removed in 1.9. In case some packages import
183188
# but do not use them, we define them here for backward compatibility.
184189
oldnumeric = 'removed'

0 commit comments

Comments
 (0)
0