Tests can skip by exiting with 99; fix eigen test failure
This allows (and changes the current examples) to exit with status 99 to
skip a test instead of outputting a special string ("NumPy missing").
This also fixes the eigen test, which currently fails when eigen
headers are available but NumPy is not, to skip instead of failing when
NumPy isn't available.
diff --git a/example/example10.py b/example/example10.py
index b18e729..e21c1a5 100755
--- a/example/example10.py
+++ b/example/example10.py
@@ -7,8 +7,8 @@
try:
import numpy as np
except ImportError:
- print('NumPy missing')
- exit(0)
+ # NumPy missing: skip test
+ exit(99)
from example import vectorized_func
from example import vectorized_func2