[tests] remove __init__.py, use absolute imports
authorPaul Brossier <piem@piem.org>
Thu, 1 Nov 2018 22:55:25 +0000 (23:55 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 1 Nov 2018 22:55:25 +0000 (23:55 +0100)
python/tests/__init__.py [deleted file]
python/tests/test_filter.py
python/tests/test_filterbank.py
python/tests/test_mfcc.py
python/tests/test_midi2note.py
python/tests/test_note2midi.py
python/tests/test_notes.py
python/tests/test_phasevoc.py
python/tests/test_slicing.py

diff --git a/python/tests/__init__.py b/python/tests/__init__.py
deleted file mode 100644 (file)
index 8b13789..0000000
+++ /dev/null
@@ -1 +0,0 @@
-
index fc222cc..af588dc 100755 (executable)
@@ -2,7 +2,7 @@
 
 from numpy.testing import TestCase, assert_equal, assert_almost_equal
 from aubio import fvec, digital_filter
-from .utils import array_from_text_file
+from utils import array_from_text_file
 
 class aubio_filter_test_case(TestCase):
 
index 5cf28a2..67a8558 100755 (executable)
@@ -4,7 +4,7 @@ import numpy as np
 from numpy.testing import TestCase, assert_equal, assert_almost_equal
 
 from aubio import cvec, filterbank, float_type
-from .utils import array_from_text_file
+from utils import array_from_text_file
 
 class aubio_filterbank_test_case(TestCase):
 
index c88d2fe..28972b9 100755 (executable)
@@ -1,6 +1,6 @@
 #! /usr/bin/env python
 
-from ._tools import parametrize, assert_raises
+from _tools import parametrize, assert_raises
 from numpy import random, count_nonzero
 from numpy.testing import TestCase
 from aubio import mfcc, cvec, float_type
index d9c6b86..a81f502 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 
 from aubio import midi2note
-from ._tools import parametrize, assert_raises
+from _tools import parametrize, assert_raises
 
 list_of_known_midis = (
         ( 0, 'C-1' ),
index 60f5b53..e6a74f6 100755 (executable)
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
 
 from aubio import note2midi, freq2note, note2freq, float_type
 from numpy.testing import TestCase
-from ._tools import parametrize, assert_raises
+from _tools import parametrize, assert_raises
 
 list_of_known_notes = (
         ( 'C-1', 0 ),
index 87612cb..a95d010 100755 (executable)
@@ -3,7 +3,7 @@
 from numpy.testing import TestCase, assert_equal, assert_almost_equal
 from aubio import notes, source
 import numpy as np
-from .utils import list_all_sounds
+from utils import list_all_sounds
 
 list_of_sounds = list_all_sounds('sounds')
 
index 73784d0..a38c3c8 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 
 from numpy.testing import TestCase, assert_equal, assert_array_less
-from ._tools import parametrize
+from _tools import parametrize
 from aubio import fvec, cvec, pvoc, float_type
 import numpy as np
 
index 2ad84f4..18391e9 100755 (executable)
@@ -2,8 +2,8 @@
 
 from numpy.testing import TestCase, assert_equal
 from aubio import slice_source_at_stamps
-from .utils import count_files_in_directory, get_default_test_sound
-from .utils import count_samples_in_directory, count_samples_in_file
+from utils import count_files_in_directory, get_default_test_sound
+from utils import count_samples_in_directory, count_samples_in_file
 
 import tempfile
 import shutil