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