Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 503047b

Browse files
committed
MAINT: move test_c99complex.c to npymath
1 parent 566c15e commit 503047b

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

numpy/core/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def check_prec(prec):
233233
exists.extend(C99_COMPLEX_FUNCS_CHECKED)
234234

235235
if len(exists) > 0:
236-
fp = open(join('.', 'numpy', 'core', 'test_c99complex.c'), 'r')
236+
fp = open(join('.', 'numpy', 'core', 'src', 'npymath',
237+
'test_c99complex.c'), 'r')
237238
obody = fp.read()
238239
fp.close()
239240
precname = {'f':'FLOAT', '':'DOUBLE', 'l':'LONGDOUBLE'}[prec]

numpy/core/src/npymath/npymath_tests.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
#define HAVE_NUMPY 1
2626

2727
#define FLOAT 1
28-
#include "../../test_c99complex.c"
28+
#include "test_c99complex.c"
2929
#undef FLOAT
3030

3131
#define DOUBLE 1
32-
#include "../../test_c99complex.c"
32+
#include "test_c99complex.c"
3333
#undef DOUBLE
3434

3535
#define LONGDOUBLE 1
36-
#include "../../test_c99complex.c"
36+
#include "test_c99complex.c"
3737
#undef LONGDOUBLE
3838

3939
#define TESTFUNC_INT(func, suffix) \

0 commit comments

Comments
 (0)