History

[tests] avoid some imports, move main to end

Paul Brossier committed 8 years ago

Commit 319edae1 parent 48a0e5a8 files · +10 −10Browse files

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

Unified · Split

python/tests/test_mathutils.py+1−1
@@ -1,6 +1,5 @@
11 #! /usr/bin/env python
22
3−from unittest import main
43 from numpy.testing import TestCase, assert_equal
54 from numpy import array, arange, isnan, isinf
65 from aubio import bintomidi, miditobin, freqtobin, bintofreq, freqtomidi, miditofreq
@@ -101,4 +100,5 @@ class aubio_mathutils(TestCase): · 94 unmodified lines
101100 assert_equal ( array(b) < 0, False )
102101
103102 if __name__ == '__main__':
103+ from unittest import main
104104 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