Skip to content

Commit

Permalink
Ensure config, build, toolchain, spelling, etc. issues are not masked. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve authored Oct 30, 2022
1 parent b07d08f commit 5bc0943
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/pybind11/eigen/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "../numpy.h"

// Similar to comments & pragma block in eigen_tensor.h. PLEASE KEEP IN SYNC.
/* HINT: To suppress warnings originating from the Eigen headers, use -isystem.
See also:
https://stackoverflow.com/questions/2579576/i-dir-vs-isystem-dir
Expand Down
12 changes: 10 additions & 2 deletions tests/test_eigen_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@
from pybind11_tests import eigen_tensor_avoid_stl_array as avoid

submodules += [avoid.c_style, avoid.f_style]
except ImportError:
pass
except ImportError as e:
# Ensure config, build, toolchain, etc. issues are not masked here:
raise RuntimeError(
"import pybind11_tests.eigen_tensor_avoid_stl_array FAILED, while "
"import pybind11_tests.eigen_tensor succeeded. "
"Please ensure that "
"test_eigen_tensor.cpp & "
"test_eigen_tensor_avoid_stl_array.cpp "
"are built together (or both are not built if Eigen is not available)."
) from e

tensor_ref = np.empty((3, 5, 2), dtype=np.int64)

Expand Down

0 comments on commit 5bc0943

Please sign in to comment.