Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/resources/significantly_different_test.py

Issue 1610203003: Iteratively increase sample size for good/bad classification. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fixing multiple problems Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/python
2 """Tests for significantly_different."""
3
4 import os
5 import unittest
6
7 # pylint: disable=relative-import
8 import significantly_different
9
10
11 class SignificantlyDifferentTest(unittest.TestCase):
12
13 def setUp(self):
14 self.conda_path = None
15 try:
16 # pylint: disable=unused-variable
17 import scipy
18 # pylint: enable=unused-variable
qyearsley 2016/01/26 19:26:00 I think it also works to just put the pylint: disa
RobertoCN 2016/02/01 17:29:51 Done.
19 self.conda_path = 'python'
20 except ImportError:
21 if os.path.exists(os.path.expanduser('~/conda-test/bin/python')):
22 self.conda_path = os.path.expanduser('~/conda-test/bin/python')
23
24 def test_basic_case(self):
25 significantly_different.main(
26 ['', '[1, 2, 3, 3, 2, 1]', '[1, 2, 2, 2, 5, 0]', 0.05], self.conda_path)
qyearsley 2016/01/26 19:26:00 Does this actually run anaconda and run the statis
RobertoCN 2016/02/01 17:29:51 Done.
27
28
29 if __name__ == '__main__':
30 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698