Showing the changes to python/tests/test_mathutils.py (1 of 8 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, assert_equal |
| 5 | 4 | from numpy import array, arange, isnan, isinf |
| 6 | 5 | from aubio import bintomidi, miditobin, freqtobin, bintofreq, freqtomidi, miditofreq |
| @@ -101,4 +100,5 @@ class aubio_mathutils(TestCase): · 94 unmodified lines | ||
| 101 | 100 | assert_equal ( array(b) < 0, False ) |
| 102 | 101 | |
| 103 | 102 | if __name__ == '__main__': |
| 103 | + from unittest import main | |
| 104 | 104 | main() |