File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
import unittest
2
+ import warnings
2
3
3
- suite = unittest .defaultTestLoader .discover ('backtesting.test' ,
4
- pattern = '_test*.py' )
5
- unittest .defaultTestLoader .suiteClass = lambda _ : suite
6
4
7
5
if __name__ == '__main__' :
8
- unittest .main (verbosity = 2 )
6
+ warnings .filterwarnings ('error' )
7
+ unittest .main (module = 'backtesting.test._test' , verbosity = 2 )
Original file line number Diff line number Diff line change 3
3
import sys
4
4
import time
5
5
import unittest
6
- import warnings
7
6
from concurrent .futures .process import ProcessPoolExecutor
8
7
from contextlib import contextmanager
9
8
from glob import glob
@@ -1059,8 +1058,3 @@ def next(self):
1059
1058
order .cancel ()
1060
1059
1061
1060
Backtest (SHORT_DATA , S ).run ()
1062
-
1063
-
1064
- if __name__ == '__main__' :
1065
- warnings .filterwarnings ('error' )
1066
- unittest .main ()
You can’t perform that action at this time.
0 commit comments