Chromium Code Reviews| OLD | NEW |
|---|---|
| (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() | |
| OLD | NEW |