From 2dcbc560320cb70c2664ed442b9083f80b23840b Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Mon, 26 Oct 2020 19:23:40 +0300 Subject: MAINT: valid doctest for config_py function show() (#17621) 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(+) (limited to 'numpy/distutils/misc_util.py') diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index aa649a23f..778723bfe 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -2356,6 +2356,7 @@ def generate_config_py(target): Examples -------- + >>> import numpy as np >>> np.show_config() blas_opt_info: language = c -- cgit v1.2.1