Commit dd0b10c7 authored by Robert Bradshaw's avatar Robert Bradshaw

Work around numpy build formatting differences.

parent a8e96fd3
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
cimport numpy as np cimport numpy as np
cimport cython cimport cython
import re
import sys import sys
from libc.stdlib cimport malloc from libc.stdlib cimport malloc
...@@ -234,7 +235,7 @@ try: ...@@ -234,7 +235,7 @@ try:
8,16 8,16
>>> test_point_record() >>> test_point_record()
array([(0.0, 0.0), (1.0, -1.0), (2.0, -2.0)], array([(0., 0.), (1., -1.), (2., -2.)],
dtype=[('x', '!f8'), ('y', '!f8')]) dtype=[('x', '!f8'), ('y', '!f8')])
""" """
...@@ -518,7 +519,8 @@ def test_point_record(): ...@@ -518,7 +519,8 @@ def test_point_record():
for i in range(3): for i in range(3):
test[i].x = i test[i].x = i
test[i].y = -i test[i].y = -i
print repr(test).replace('<', '!').replace('>', '!') print re.sub(
r'\.0+\b', '.', repr(test).replace('<', '!').replace('>', '!'))
# Test fused np.ndarray dtypes and runtime dispatch # Test fused np.ndarray dtypes and runtime dispatch
@testcase @testcase
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment