diff options
Diffstat (limited to '.venv/lib/python3.12/site-packages/numpy/tests/test__all__.py')
-rw-r--r-- | .venv/lib/python3.12/site-packages/numpy/tests/test__all__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/numpy/tests/test__all__.py b/.venv/lib/python3.12/site-packages/numpy/tests/test__all__.py new file mode 100644 index 00000000..e44bda3d --- /dev/null +++ b/.venv/lib/python3.12/site-packages/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 |