Showing the changes to python (6 of 6 files). Show all
Unified · Split
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | −from unittest import main | |
| 4 | 3 | from numpy.testing import TestCase |
| 5 | 4 | |
| 6 | 5 | class aubiomodule_test_case(TestCase): |
| @@ -15,5 +14,5 @@ class aubiomodule_test_case(TestCase): · 8 unmodified lines | ||
| 15 | 14 | self.assertEqual('0', aubio.version[0]) |
| 16 | 15 | |
| 17 | 16 | if __name__ == '__main__': |
| 17 | + from unittest import main | |
| 18 | 18 | main() |
| 19 | − | |
| @@ -1,8 +1,7 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | −import aubio.cmd | |
| 4 | −from nose2 import main | |
| 5 | 3 | from numpy.testing import TestCase |
| 4 | +import aubio.cmd | |
| 6 | 5 | |
| 7 | 6 | class aubio_cmd(TestCase): |
| 8 | 7 | |
| @@ -31,4 +30,5 @@ class aubio_cmd_utils(TestCase): · 22 unmodified lines | ||
| 31 | 30 | "3200\t") |
| 32 | 31 | |
| 33 | 32 | if __name__ == '__main__': |
| 33 | + from unittest import main | |
| 34 | 34 | main() |
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | 3 | import aubio.cut |
| 4 | −from nose2 import main | |
| 5 | 4 | from numpy.testing import TestCase |
| 6 | 5 | |
| 7 | 6 | class aubio_cut(TestCase): |
| @@ -13,4 +12,5 @@ class aubio_cut(TestCase): · 5 unmodified lines | ||
| 13 | 12 | assert self.a_parser.parse_args(['-v']).verbose |
| 14 | 13 | |
| 15 | 14 | if __name__ == '__main__': |
| 15 | + from unittest import main | |
| 16 | 16 | main() |
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | −from unittest import main | |
| 4 | 3 | import numpy as np |
| 5 | 4 | from numpy.testing import TestCase, assert_equal |
| 6 | 5 | from aubio import cvec, fvec, float_type |
| @@ -141,4 +140,5 @@ class aubio_cvec_wrong_norm_input(TestCase): · 134 unmodified lines | ||
| 141 | 140 | a.norm = np.zeros((512//2+1, 2), dtype = float_type) |
| 142 | 141 | |
| 143 | 142 | if __name__ == '__main__': |
| 143 | + from unittest import main | |
| 144 | 144 | main() |
| @@ -66,3 +66,7 @@ class aubio_dct(TestCase): · 65 unmodified lines | ||
| 66 | 66 | aubio.dct(size) |
| 67 | 67 | except AssertionError: |
| 68 | 68 | self.skipTest('creating aubio.dct with size %d did not fail' % size) |
| 69 | + | |
| 70 | +if __name__ == '__main__': | |
| 71 | + from unittest import main | |
| 72 | + main() | |
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | |
| 3 | −from unittest import main | |
| 4 | 3 | import numpy as np |
| 5 | 4 | from numpy.testing import TestCase, assert_equal, assert_almost_equal |
| 6 | 5 | from aubio import fvec, zero_crossing_rate, alpha_norm, min_removal |
| @@ -148,4 +147,5 @@ class aubio_fvec_test_memory(TestCase): · 141 unmodified lines | ||
| 148 | 147 | del c |
| 149 | 148 | |
| 150 | 149 | if __name__ == '__main__': |
| 150 | + from unittest import main | |
| 151 | 151 | main() |