Skip to content

Commit 9c29a39

Browse files
committed
RF+BF: work round Windows not having longcomplex
Windows does not have longcomplex in sctypes.
1 parent cd93c5b commit 9c29a39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipy/core/reference/tests/test_coordinate_map.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
[np.object])
3232
# Sympy <= 1.1 does not handle numpy longcomplex correctly. See:
3333
# https://github.com/sympy/sympy/pull/12901
34-
_SYMPY_SAFE_DTYPES.remove(np.longcomplex)
34+
if np.longcomplex in _SYMPY_SAFE_DTYPES: # Not present for Windows
35+
_SYMPY_SAFE_DTYPES.remove(np.longcomplex)
3536

3637

3738
class empty(object):

0 commit comments

Comments
 (0)