Skip to content
  • Sponsor
  • Notifications You must be signed in to change notification settings
  • Fork 1.2k
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a9daa57

Browse files
committedMar 30, 2025··
TST: Loosen test_optimize_speed test on MS Windows
1 parent bd81e76 commit a9daa57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎backtesting/test/_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ def test_optimize_speed(self):
630630
bt.optimize(fast=range(2, 20, 2), slow=range(10, 40, 2))
631631
end = time.process_time()
632632
print(end - start)
633-
self.assertLess(end - start, .3)
633+
handicap = 5 if 'win' in sys.platform else .1
634+
self.assertLess(end - start, .3 + handicap)
634635

635636

636637
class TestPlot(TestCase):

0 commit comments

Comments
 (0)
Please sign in to comment.