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 | 10 |
1 files changed, 10 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 0000000..2dc8166 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/numpy/tests/test__all__.py @@ -0,0 +1,10 @@ + +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 |
