File: run_tests_cython_long.py

package info (click to toggle)
brian 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,872 kB
  • sloc: python: 51,820; cpp: 2,033; makefile: 108; sh: 72
file content (10 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
'''
Run all the Cython tests (including tests that take a long time) using pytest.
Exits with error code 1 if a test failed.
'''
import sys

import brian2

if not brian2.test('cython', long_tests=True):  # If the test fails, exit with a non-zero error code
    sys.exit(1)