Showing the changes to python/tests/test_zero_crossing_rate.py (1 of 3 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 | from aubio import fvec, zero_crossing_rate |
| 6 | 5 | |
| @@ -43,4 +42,5 @@ class zero_crossing_rate_test_case(TestCase): · 36 unmodified lines | ||
| 43 | 42 | self.assertEqual(2./buf_size, zero_crossing_rate(self.vector)) |
| 44 | 43 | |
| 45 | 44 | if __name__ == '__main__': |
| 45 | + from unittest import main | |
| 46 | 46 | main() |