Changeset 319edae for python


Ignore:
Timestamp:
Nov 1, 2018, 2:53:33 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
40b2be2
Parents:
48a0e5a
Message:

[tests] avoid some imports, move main to end

Location:
python/tests
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fft.py

    r48a0e5a r319edae  
    11#! /usr/bin/env python
    22
    3 from unittest import main
    43from numpy.testing import TestCase
    54from numpy.testing import assert_equal, assert_almost_equal
     
    193192
    194193if __name__ == '__main__':
     194    from unittest import main
    195195    main()
  • python/tests/test_filter.py

    r48a0e5a r319edae  
    11#! /usr/bin/env python
    22
    3 from unittest import main
    43from numpy.testing import TestCase, assert_equal, assert_almost_equal
    54from aubio import fvec, digital_filter
     
    8584
    8685if __name__ == '__main__':
     86    from unittest import main
    8787    main()
  • python/tests/test_filterbank.py

    r48a0e5a r319edae  
    8888
    8989if __name__ == '__main__':
    90     import nose2
    91     nose2.main()
     90    from unittest import main
     91    main()
  • python/tests/test_filterbank_mel.py

    r48a0e5a r319edae  
    4949
    5050if __name__ == '__main__':
    51     import nose2
    52     nose2.main()
     51    from unittest import main
     52    main()
  • python/tests/test_fvec_shift.py

    r48a0e5a r319edae  
    3131        self.run_shift_ishift(7)
    3232
    33 from unittest import main
    3433if __name__ == '__main__':
     34    from unittest import main
    3535    main()
  • python/tests/test_mathutils.py

    r48a0e5a r319edae  
    11#! /usr/bin/env python
    22
    3 from unittest import main
    43from numpy.testing import TestCase, assert_equal
    54from numpy import array, arange, isnan, isinf
     
    102101
    103102if __name__ == '__main__':
     103    from unittest import main
    104104    main()
  • python/tests/test_musicutils.py

    r48a0e5a r319edae  
    11#! /usr/bin/env python
    22
    3 from unittest import main
    43import numpy as np
    54from numpy.testing import TestCase
     
    8685
    8786if __name__ == '__main__':
     87    from unittest import main
    8888    main()
  • python/tests/test_onset.py

    r48a0e5a r319edae  
    11#! /usr/bin/env python
    22
    3 from unittest import main
    43from numpy.testing import TestCase, assert_equal, assert_almost_equal
    54from aubio import onset
     
    8584
    8685if __name__ == '__main__':
     86    from unittest import main
    8787    main()
Note: See TracChangeset for help on using the changeset viewer.