statsmodels.__init__.test

statsmodels.__init__.test(extra_args=None, exit=False)[source]

Run the test suite

Parameters:
  • extra_args (list[str]) – List of argument to pass to pytest when running the test suite. The default is [’–tb=short’, ‘–disable-pytest-warnings’].

  • exit (bool) – Flag indicating whether the test runner should exit when finished.

Returns:

The status code from the test run if exit is False.

Return type:

int