Hide keyboard shortcuts

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

1 

2from statsmodels._version import get_versions 

3 

4debug_warnings = False 

5 

6if debug_warnings: 

7 import warnings 

8 

9 warnings.simplefilter("default") 

10 # use the following to raise an exception for debugging specific warnings 

11 # warnings.filterwarnings("error", message=".*integer.*") 

12 

13 

14def test(extra_args=None, exit=False): 

15 """ 

16 Run the test suite 

17 

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. 

25 

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) 

34 

35 

36__version__ = get_versions()['version'] 

37del get_versions