Skip to content

Commit

Permalink
enable support for SWIG 4.0 (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskooi authored Mar 26, 2020
1 parent 221c64d commit 9aba9c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,6 @@ AC_CHECK_PROG(SWIG, swig, swig, echo)
if test "$USE_MAINTAINER_MODE" = yes && (test "x$with_python" = "xyes" || test "x$with_scheme" = "xyes") && test "x$SWIG" = xecho; then
AC_MSG_ERROR([SWIG not found; configure --without-python --without-scheme or use a release tarball])
fi
if test "$USE_MAINTAINER_MODE" = yes && test "x$with_python" = "xyes"; then
if ($SWIG -version | grep "SWIG Version 4" > /dev/null 2>&1); then
AC_MSG_ERROR([SWIG version 4 is not supported for Python; configure --without-python or use a release tarball])
fi
fi

if test "x$with_python" = xno; then
have_python=no
Expand Down
2 changes: 1 addition & 1 deletion python/tests/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def check_iterable(one, two, three, four):
assert_two(v2)
v3 = mp.vec(three)
assert_three(v3)
assert_raises(four, NotImplementedError)
assert_raises(four, (NotImplementedError,TypeError))

check_iterable([1], [1, 2], [1, 2, 3], [1, 2, 3, 4])
check_iterable((1,), (1, 2), (1, 2, 3), (1, 2, 3, 4))
Expand Down

0 comments on commit 9aba9c0

Please sign in to comment.