8000 BUG: Fix wrappers for fortranname · numpy/numpy@a39d91c · GitHub
[go: up one dir, main page]

Skip to content

Commit a39d91c

Browse files
committed
BUG: Fix wrappers for fortranname
Closes gh-25700
1 parent 6934cbe commit a39d91c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numpy/f2py/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@
459459
{
460460
extern #ctype# #F_FUNC#(#name_lower#,#NAME#)(void);
461461
PyObject* o = PyDict_GetItemString(d,"#name#");
462-
tmp = F2PyCapsule_FromVoidPtr((void*)#F_FUNC#(#name_lower#,#NAME#),NULL);
462+
tmp = F2PyCapsule_FromVoidPtr((void*)#F_WRAPPEDFUNC#(#name_lower#,#NAME#),NULL);
463463
PyObject_SetAttrString(o,"_cpointer", tmp);
464464
Py_DECREF(tmp);
465465
s = PyUnicode_FromString("#name#");

numpy/f2py/tests/test_routines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TestRenamedFunc(util.F2PyTest):
1010
]
1111
module_name = "funcfortranname"
1212

13-
def test_renamed_function(self):
13+
def test_gh25799(self):
1414
assert dir(self.module)
1515
assert self.module.funcfortranname_default(200, 12) == 212
1616

0 commit comments

Comments
 (0)
0