Skip to content

Commit

Permalink
[CI] Fix failure due to windows-specific demangle
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Aug 9, 2024
1 parent 2b9c7b4 commit 831ffe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interfaces/cython/cantera/func1.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ cdef class Func1:
.. versionadded:: 3.1
"""
return pystr(self.func.typeName())
# ensure that Windows and macOS/Linux return same string
# (names demangled on some Windows systems start with 'class ')
return pystr(self.func.typeName()).split()[-1]

def write(self, name="x"):
"""
Expand Down

0 comments on commit 831ffe9

Please sign in to comment.