Skip to content

Commit ce74a34

Browse files
committed
TST: Loosen test_optimize_speed test on MS Windows
1 parent 7761315 commit ce74a34

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)