Showing the changes to python/tests/test_slicing.py (1 of 3 files). Show all
Unified · Split
| @@ -1,6 +1,5 @@ | |||
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python |
| 2 | 2 | ||
| 3 | from unittest import main | ||
| 4 | from numpy.testing import TestCase, assert_equal | 3 | from numpy.testing import TestCase, assert_equal |
| 5 | from aubio import slice_source_at_stamps | 4 | from aubio import slice_source_at_stamps |
| 6 | from .utils import count_files_in_directory, get_default_test_sound | 5 | from .utils import count_files_in_directory, get_default_test_sound |
| @@ -167,4 +166,5 @@ class aubio_slicing_wrong_ends_test_case(TestCase): · 160 unmodified lines | |||
| 167 | shutil.rmtree(self.output_dir) | 166 | shutil.rmtree(self.output_dir) |
| 168 | 167 | ||
| 169 | if __name__ == '__main__': | 168 | if __name__ == '__main__': |
| 169 | from unittest import main | ||
| 170 | main() | 170 | main() |