/usr/local/lib64/python3.6/site-packages/numpy/tests
NameSizeModeActions
__pycache__/-0755rm
test_ctypeslib.py121700644editdlrm
test_matlib.py18520644editdlrm
test_numpy_version.py5810644editdlrm
test_public_api.py154850644editdlrm
test_reloading.py19500644editdlrm
test_scripts.py15210644editdlrm
test_warnings.py22800644editdlrm
__init__.py00644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/numpy/tests/test_numpy_version.py (581B)
import re import numpy as np from numpy.testing import assert_ def test_valid_numpy_version(): # Verify that the numpy version is a valid one (no .post suffix or other # nonsense). See gh-6431 for an issue caused by an invalid version. version_pattern = r"^[0-9]+\.[0-9]+\.[0-9]+(|a[0-9]|b[0-9]|rc[0-9])" dev_suffix = r"(\.dev0\+([0-9a-f]{7}|Unknown))" if np.version.release: res = re.match(version_pattern, np.__version__) else: res = re.match(version_pattern + dev_suffix, np.__version__) assert_(res is not None, np.__version__)