Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/statsmodels/__init__.py : 55%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
2from statsmodels._version import get_versions
4debug_warnings = False
6if debug_warnings:
7 import warnings
9 warnings.simplefilter("default")
10 # use the following to raise an exception for debugging specific warnings
11 # warnings.filterwarnings("error", message=".*integer.*")
14def test(extra_args=None, exit=False):
15 """
16 Run the test suite
18 Parameters
19 ----------
20 extra_args : list[str]
21 List of argument to pass to pytest when running the test suite. The
22 default is ['--tb=short', '--disable-pytest-warnings'].
23 exit : bool
24 Flag indicating whether the test runner should exist when finished.
26 Returns
27 -------
28 int
29 The status code from the test run if exit is False.
30 """
31 from .tools._testing import PytestTester
32 tst = PytestTester(package_path=__file__)
33 return tst(extra_args=extra_args, exit=exit)
36__version__ = get_versions()['version']
37del get_versions