8000 BUG: Fix `fortranname` for functions by HaoZeke · Pull Request #27731 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix fortranname for functions #27731

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

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
BUG: Fix wrappers for fortranname
Closes gh-25700
  • Loading branch information
HaoZeke committed Nov 11, 2024
commit a39d91c2839e4a36dbe9d72d78fa086bf0c06ed0
2 changes: 1 addition & 1 deletion numpy/f2py/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
{
extern #ctype# #F_FUNC#(#name_lower#,#NAME#)(void);
PyObject* o = PyDict_GetItemString(d,"#name#");
tmp = F2PyCapsule_FromVoidPtr((void*)#F_FUNC#(#name_lower#,#NAME#),NULL);
tmp = F2PyCapsule_FromVoidPtr((void*)#F_WRAPPEDFUNC#(#name_lower#,#NAME#),NULL);
PyObject_SetAttrString(o,"_cpointer", tmp);
Py_DECREF(tmp);
s = PyUnicode_FromString("#name#");
Expand Down
2 changes: 1 addition & 1 deletion numpy/f2py/tests/test_routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestRenamedFunc(util.F2PyTest):
]
module_name = "funcfortranname"

def test_renamed_function(self):
def test_gh25799(self):
assert dir(self.module)
assert self.module.funcfortranname_default(200, 12) == 212

Expand Down
Loading
0