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.
This commit is contained in:
Jason Rhinelander
2016-07-08 17:44:12 -04:00
parent 5ba89c340c
commit 7de9f6c72d
4 changed files with 19 additions and 11 deletions

View File

@@ -8,8 +8,8 @@ from example import Matrix
try:
import numpy as np
except ImportError:
print('NumPy missing')
exit(0)
# NumPy missing: skip test
exit(99)
m = Matrix(5, 5)