summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-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()