Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce74a34

Browse filesBrowse files
committed
TST: Loosen test_optimize_speed test on MS Windows
1 parent 7761315 commit ce74a34
Copy full SHA for ce74a34

1 file changed

+2-1Lines changed: 2 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎backtesting/test/_test.py‎

Copy file name to clipboardExpand all lines: backtesting/test/_test.py
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.