Skip to content
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

enable support for SWIG 4.0 #1159

Merged
merged 1 commit into from
Mar 26, 2020
Merged

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Mar 25, 2020

Closes #965.

swig/swig@fd651ff changed the exception raised from NotImplementedError to TypeError when incorrect types are passed to a function. As reported in #965:comment, this change was causing a build error using SWIG 4.0.1 (built from source) on Ubuntu.

This PR fixes that error by supporting both types of exceptions (as a tuple in assertRaises) in that single failing test in python/tests/simulation.py.

@stevengj stevengj merged commit 9aba9c0 into NanoComp:master Mar 26, 2020
@oskooi oskooi deleted the swig4.0_support_ branch March 27, 2020 15:57
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__swig_getmethods__ no longer exists in SWIG 4.0.0?
2 participants