Skip to content

Test clog failure #57

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

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 6 additions & 6 deletions numpy/core/tests/test_umath_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@

# At least on Windows the results of many complex functions are not conforming
# to the C99 standard. See ticket 1574.
# Ditto for Solaris (ticket 1642).
# Ditto for Solaris (ticket 1642) and OS X on PowerPC.
olderr = np.seterr(divide='ignore')
try:
functions_seem_flaky = ((np.exp(complex(np.inf, 0)).imag != 0)
or (np.log(complex(np.NZERO, 0)).imag != np.pi))
finally:
np.seterr(**olderr)
# TODO: replace with a check on whether platform-provided C99 funcs are used
have_platform_functions = (sys.platform.startswith('win')
or sys.platform.startswith('sunos')
or (sys.platform == 'darwin' and 'powerpc' in
platform.processor()))
skip_complex_tests = have_platform_functions and functions_seem_flaky
have_platform_functions = (sys.platform.startswith('sunos') or
(sys.platform == 'darwin' and 'powerpc' in
platform.processor()))
skip_complex_tests = (sys.platform.startswith('win') or
(have_platform_functions and functions_seem_flaky))

def platform_skip(func):
return dec.skipif(skip_complex_tests,
Expand Down