diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-09-03 16:25:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 16:25:26 +0300 |
commit | 3dacab0b327a0a289c1bafc2a5744974732794e2 (patch) | |
tree | a7e5b2fa2d945421b3aa8a27799a3b91606a7fbb | |
parent | f842c487da5096bd3e76a716ca033681981821c7 (diff) | |
parent | d7dfb635457a14bd2a3eaccf2ed94423cedb33df (diff) | |
download | numpy-3dacab0b327a0a289c1bafc2a5744974732794e2.tar.gz |
Merge pull request #17237 from charris/fix-flatiter-typing
BUG: Avoid using ``np.random`` in typing tests.
-rw-r--r-- | numpy/tests/typing/pass/flatiter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/tests/typing/pass/flatiter.py b/numpy/tests/typing/pass/flatiter.py index 93c15f601..c0219eb2b 100644 --- a/numpy/tests/typing/pass/flatiter.py +++ b/numpy/tests/typing/pass/flatiter.py @@ -1,6 +1,6 @@ import numpy as np -a = np.random.rand(5).flat +a = np.empty((2, 2)).flat a.base a.copy() |