8000 TST: join fft threads before getting values by juliantaylor · Pull Request #5035 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion numpy/fft/tests/test_fftpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def worker(args, q):
for i in range(self.threads)]
[x.start() for x in t]

[x.join() for x in t]
# Make sure all threads returned the correct value
for i in range(self.threads):
assert_array_equal(q.get(timeout=5), expected,
'Function returned wrong value in multithreaded context')
[x.join() for x in t]

def test_fft(self):
a = np.ones(self.input_shape) * 1+0j
Expand Down
0