8000 TST: add test from gh-28042 · melissawm/numpy@bb75e6e · GitHub
[go: up one dir, main page]

Skip to content

Commit bb75e6e

Browse files
committed
TST: add test from numpygh-28042
1 parent e9585e0 commit bb75e6e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

numpy/_core/tests/test_multithreading.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,14 @@ def closure(b):
131131

132132
run_threaded(closure, NUM_THREADS, max_workers=NUM_THREADS,
133133
pass_barrier=True)
134+
135+
136+
def test_parallel_flat_iterator():
137+
x = np.arange(20).reshape(5, 4).T
138+
139+
def closure(b):
140+
b.wait()
141+
for _ in range(100):
142+
list(x.flat)
143+
144+
run_threaded(closure, outer_iterations=100, pass_barrier=True)

0 commit comments

Comments
 (0)
0