From 7884a8c9f5f5c6657413dbeaa59ad969280d38ea Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Sat, 23 Jan 2016 15:58:58 +0100 Subject: ENH: Add stacklevel to all (or almost all) our function calls --- numpy/core/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/setup.py') diff --git a/numpy/core/setup.py b/numpy/core/setup.py index c6c1f6c03..bec358480 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -179,7 +179,7 @@ def check_complex(config, mathlibs): try: if os.uname()[0] == "Interix": - warnings.warn("Disabling broken complex support. See #1365") + warnings.warn("Disabling broken complex support. See #1365", stacklevel=2) return priv, pub except: # os.uname not available on all platforms. blanket except ugly but safe -- cgit v1.2.1