| 1 |
''' |
| 2 |
Run all the non-standalone tests using pytest. Exits with error code 1 if a test failed. |
| 3 |
''' |
| 4 |
import sys |
| 5 |
|
| 6 |
import brian2 |
| 7 |
|
| 8 |
if __name__ == '__main__': |
| 9 |
if not brian2.test(): # If the test fails, exit with a non-zero error code |
| 10 |
sys.exit(1) |