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_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/setup_common.py') diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py index ba7521e30..90b592999 100644 --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -94,7 +94,7 @@ def check_api_version(apiversion, codegen_dir): ) warnings.warn(msg % (apiversion, curapi_hash, apiversion, api_hash, __file__), - MismatchCAPIWarning) + MismatchCAPIWarning, stacklevel=2) # Mandatory functions: if not found, fail the build MANDATORY_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor", "ceil", "sqrt", "log10", "log", "exp", "asin", -- cgit v1.2.1