From e69a18367ea38e9876a3c4b07b3278ff24cec24e Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Sat, 24 Oct 2020 13:24:35 +0300 Subject: [PATCH] TST: Valid docstring for config_py function show() numpy.distutils generates a function `__config__.show`. This change makes the docstring of that function complete (with the required imports) and runnable. This prevents numpy.distutils from adding doctests that will fail -- if picked-up by the test runner. --- numpy/distutils/misc_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index aa649a23f390..778723bfeeda 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -2356,6 +2356,7 @@ def show(): Examples -------- + >>> import numpy as np >>> np.show_config() blas_opt_info: language = c