History

[tests] remove __init__.py, use absolute imports

Paul Brossier committed 8 years ago

Commit d4fae341 parent 7debeb69 files · +9 −10Browse files

Showing the changes to python (9 of 9 files). Show all

Unified · Split

9 files
  1. python/tests/__init__.py +0 −1
  2. python/tests/test_filter.py +1 −1
  3. python/tests/test_filterbank.py +1 −1
  4. python/tests/test_mfcc.py +1 −1
  5. python/tests/test_midi2note.py +1 −1
  6. python/tests/test_note2midi.py +1 −1
  7. python/tests/test_notes.py +1 −1
  8. python/tests/test_phasevoc.py +1 −1
  9. python/tests/test_slicing.py +2 −2
python/tests/__init__.py+0−1
@@ -1 +0,0 @@
1
python/tests/test_filter.py+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
2 2
3from numpy.testing import TestCase, assert_equal, assert_almost_equal3from numpy.testing import TestCase, assert_equal, assert_almost_equal
4from aubio import fvec, digital_filter4from aubio import fvec, digital_filter
5from .utils import array_from_text_file5from utils import array_from_text_file
6 6
7class aubio_filter_test_case(TestCase):7class aubio_filter_test_case(TestCase):
8 8
python/tests/test_filterbank.py+1−1
@@ -4,7 +4,7 @@ import numpy as np · 3 unmodified lines
4from numpy.testing import TestCase, assert_equal, assert_almost_equal4from numpy.testing import TestCase, assert_equal, assert_almost_equal
5 5
6from aubio import cvec, filterbank, float_type6from aubio import cvec, filterbank, float_type
7from .utils import array_from_text_file7from utils import array_from_text_file
8 8
9class aubio_filterbank_test_case(TestCase):9class aubio_filterbank_test_case(TestCase):
10 10
python/tests/test_mfcc.py+1−1
@@ -1,6 +1,6 @@
1#! /usr/bin/env python1#! /usr/bin/env python
2 2
3from ._tools import parametrize, assert_raises3from _tools import parametrize, assert_raises
4from numpy import random, count_nonzero4from numpy import random, count_nonzero
5from numpy.testing import TestCase5from numpy.testing import TestCase
6from aubio import mfcc, cvec, float_type6from aubio import mfcc, cvec, float_type
python/tests/test_midi2note.py+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3 3
4from aubio import midi2note4from aubio import midi2note
5from ._tools import parametrize, assert_raises5from _tools import parametrize, assert_raises
6 6
7list_of_known_midis = (7list_of_known_midis = (
8 ( 0, 'C-1' ),8 ( 0, 'C-1' ),
python/tests/test_note2midi.py+1−1
@@ -5,7 +5,7 @@ from __future__ import unicode_literals · 4 unmodified lines
5 5
6from aubio import note2midi, freq2note, note2freq, float_type6from aubio import note2midi, freq2note, note2freq, float_type
7from numpy.testing import TestCase7from numpy.testing import TestCase
8from ._tools import parametrize, assert_raises8from _tools import parametrize, assert_raises
9 9
10list_of_known_notes = (10list_of_known_notes = (
11 ( 'C-1', 0 ),11 ( 'C-1', 0 ),
python/tests/test_notes.py+1−1
@@ -3,7 +3,7 @@ · 2 unmodified lines
3from numpy.testing import TestCase, assert_equal, assert_almost_equal3from numpy.testing import TestCase, assert_equal, assert_almost_equal
4from aubio import notes, source4from aubio import notes, source
5import numpy as np5import numpy as np
6from .utils import list_all_sounds6from utils import list_all_sounds
7 7
8list_of_sounds = list_all_sounds('sounds')8list_of_sounds = list_all_sounds('sounds')
9 9
python/tests/test_phasevoc.py+1−1
@@ -1,7 +1,7 @@
1#! /usr/bin/env python1#! /usr/bin/env python
2 2
3from numpy.testing import TestCase, assert_equal, assert_array_less3from numpy.testing import TestCase, assert_equal, assert_array_less
4from ._tools import parametrize4from _tools import parametrize
5from aubio import fvec, cvec, pvoc, float_type5from aubio import fvec, cvec, pvoc, float_type
6import numpy as np6import numpy as np
7 7
python/tests/test_slicing.py+2−2
@@ -2,8 +2,8 @@ · 1 unmodified line
2 2
3from numpy.testing import TestCase, assert_equal3from numpy.testing import TestCase, assert_equal
4from aubio import slice_source_at_stamps4from aubio import slice_source_at_stamps
5from .utils import count_files_in_directory, get_default_test_sound5from utils import count_files_in_directory, get_default_test_sound
6from .utils import count_samples_in_directory, count_samples_in_file6from utils import count_samples_in_directory, count_samples_in_file
7 7
8import tempfile8import tempfile
9import shutil9import shutil

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