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

TST: join fft threads before getting values #5035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2014
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
TST: join fft threads before getting values
avoids timeouts on slow machines
  • Loading branch information
juliantaylor committed Sep 3, 2014
commit b8aedd0e69e862a74cba896bb0dbb1d2748c4edf
2 changes: 1 addition & 1 deletion numpy/fft/tests/test_fftpack.py
5EC7
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