@@ -229,7 +229,7 @@ def next(self, _FEW_DAYS=pd.Timedelta('3 days')): # noqa: N803
229229 bt = Backtest (GOOG , Assertive )
230230 with self .assertWarns (UserWarning ):
231231 stats = bt .run ()
232- self .assertEqual (stats ['# Trades' ], 131 )
232+ self .assertEqual (stats ['# Trades' ], 132 )
233233
234234 def test_broker_params (self ):
235235 bt = Backtest (GOOG .iloc [:100 ], SmaCross ,
@@ -1006,7 +1006,7 @@ def init(self):
10061006
10071007 with self .assertWarnsRegex (UserWarning , 'margin' ):
10081008 stats = Backtest (GOOG , S ).run ()
1009- self .assertIn (stats ['# Trades' ], (1179 , 1180 )) # varies on different archs?
1009+ self .assertIn (stats ['# Trades' ], (1179 , 1182 )) # varies on different archs?
10101010
10111011 def test_TrailingStrategy (self ):
10121012 class S (TrailingStrategy ):
@@ -1023,7 +1023,7 @@ def next(self):
10231023 self .buy ()
10241024
10251025 stats = Backtest (GOOG , S ).run ()
1026- self .assertEqual (stats ['# Trades' ], 56 )
1026+ self .assertEqual (stats ['# Trades' ], 57 )
10271027
10281028 def test_FractionalBacktest (self ):
10291029 with warnings .catch_warnings (record = True ):
0 commit comments