History

[tests] move unittest import to main

Paul Brossier committed 8 years ago

Commit bb63c191 parent 40b2be23 files · +3 −3Browse files

Showing the changes to python/tests/test_slicing.py (1 of 3 files). Show all

Unified · Split

python/tests/test_slicing.py+1−1
@@ -1,6 +1,5 @@
1#! /usr/bin/env python1#! /usr/bin/env python
2 2
3from unittest import main
4from numpy.testing import TestCase, assert_equal3from numpy.testing import TestCase, assert_equal
5from aubio import slice_source_at_stamps4from aubio import slice_source_at_stamps
6from .utils import count_files_in_directory, get_default_test_sound5from .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
169if __name__ == '__main__':168if __name__ == '__main__':
169 from unittest import main
170 main()170 main()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t