diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2021-11-04 20:13:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 20:13:39 +0100 |
commit | 112e63eae5e472a8f8405f68a313d904f7fb5bda (patch) | |
tree | 25473e51f710ea0d65549fc5e861ae8b2f3ed8e6 /numpy/tests | |
parent | 111878547439d7d934b6aec06940f509f11c2a40 (diff) | |
parent | eb5e7c683fd9cc4b5c967e2260ae11f4365494a6 (diff) | |
download | numpy-112e63eae5e472a8f8405f68a313d904f7fb5bda.tar.gz |
Merge pull request #20284 from WarrenWeckesser/fix-name-dups
BUG: Fix duplication of names in 'numpy.__all__'.
Diffstat (limited to 'numpy/tests')
-rw-r--r-- | numpy/tests/test__all__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/tests/test__all__.py b/numpy/tests/test__all__.py new file mode 100644 index 000000000..e44bda3d5 --- /dev/null +++ b/numpy/tests/test__all__.py @@ -0,0 +1,9 @@ + +import collections +import numpy as np + + +def test_no_duplicates_in_np__all__(): + # Regression test for gh-10198. + dups = {k: v for k, v in collections.Counter(np.__all__).items() if v > 1} + assert len(dups) == 0 |