summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-09-03 16:25:26 +0300
committerGitHub <noreply@github.com>2020-09-03 16:25:26 +0300
commit3dacab0b327a0a289c1bafc2a5744974732794e2 (patch)
treea7e5b2fa2d945421b3aa8a27799a3b91606a7fbb
parentf842c487da5096bd3e76a716ca033681981821c7 (diff)
parentd7dfb635457a14bd2a3eaccf2ed94423cedb33df (diff)
downloadnumpy-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.py2
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()