@@ -228,7 +228,7 @@ def next(self, _FEW_DAYS=pd.Timedelta('3 days')): # noqa: N803
228228 bt = Backtest (GOOG , Assertive )
229229 with self .assertWarns (UserWarning ):
230230 stats = bt .run ()
231- self .assertEqual (stats ['# Trades' ], 131 )
231+ self .assertEqual (stats ['# Trades' ], 132 )
232232
233233 def test_broker_params (self ):
234234 bt = Backtest (GOOG .iloc [:100 ], SmaCross ,
@@ -1005,7 +1005,7 @@ def init(self):
10051005
10061006 with self .assertWarnsRegex (UserWarning , 'margin' ):
10071007 stats = Backtest (GOOG , S ).run ()
1008- self .assertIn (stats ['# Trades' ], (1179 , 1180 )) # varies on different archs?
1008+ self .assertIn (stats ['# Trades' ], (1179 , 1182 )) # varies on different archs?
10091009
10101010 def test_TrailingStrategy (self ):
10111011 class S (TrailingStrategy ):
@@ -1022,7 +1022,7 @@ def next(self):
10221022 self .buy ()
10231023
10241024 stats = Backtest (GOOG , S ).run ()
1025- self .assertEqual (stats ['# Trades' ], 56 )
1025+ self .assertEqual (stats ['# Trades' ], 57 )
10261026
10271027 def test_FractionalBacktest (self ):
10281028 with self .assertWarns (UserWarning ):
0 commit comments