diff options
author | Paul Brossier <piem@debian.org> | 2016-11-27 22:23:50 +0100 |
---|---|---|
committer | Paul Brossier <piem@debian.org> | 2016-11-27 22:23:50 +0100 |
commit | baeca22c866643299732a361dd5555c4e10d26a2 (patch) | |
tree | 9f3d4432620cba4e42d058c5b36f3a8652d1be24 | |
parent | f62a285ef4a5bd96970bf90db27ef14fdd0628de (diff) |
pytest_local_import
Gbp-Pq: Name pytest_local_import.diff
-rw-r--r-- | python/tests/__init__.py | 1 | ||||
-rwxr-xr-x | python/tests/eval_pitch | 2 | ||||
-rwxr-xr-x | python/tests/test_filter.py | 2 | ||||
-rwxr-xr-x | python/tests/test_filterbank.py | 2 | ||||
-rwxr-xr-x | python/tests/test_sink.py | 2 | ||||
-rwxr-xr-x | python/tests/test_slicing.py | 4 | ||||
-rwxr-xr-x | python/tests/test_source.py | 2 |
7 files changed, 8 insertions, 7 deletions
diff --git a/python/tests/__init__.py b/python/tests/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/python/tests/__init__.py @@ -0,0 +1 @@ + diff --git a/python/tests/eval_pitch b/python/tests/eval_pitch index 226b927..f65173f 100755 --- a/python/tests/eval_pitch +++ b/python/tests/eval_pitch @@ -24,7 +24,7 @@ import sys import time import os.path import numpy -from utils import array_from_text_file, array_from_yaml_file +from .utils import array_from_text_file, array_from_yaml_file from aubio import source, pitch, freqtomidi start = time.time() diff --git a/python/tests/test_filter.py b/python/tests/test_filter.py index eae8c18..6a7a0de 100755 --- a/python/tests/test_filter.py +++ b/python/tests/test_filter.py @@ -3,7 +3,7 @@ from unittest import main 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): diff --git a/python/tests/test_filterbank.py b/python/tests/test_filterbank.py index cc6e66e..3245008 100755 --- a/python/tests/test_filterbank.py +++ b/python/tests/test_filterbank.py @@ -5,7 +5,7 @@ from numpy.testing import TestCase from numpy.testing import assert_equal, assert_almost_equal import numpy as np 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): diff --git a/python/tests/test_sink.py b/python/tests/test_sink.py index e90b5f8..7b397ec 100755 --- a/python/tests/test_sink.py +++ b/python/tests/test_sink.py @@ -4,7 +4,7 @@ from nose2 import main from nose2.tools import params from numpy.testing import TestCase from aubio import fvec, source, sink -from utils import list_all_sounds, get_tmp_sink_path, del_tmp_sink_path +from .utils import list_all_sounds, get_tmp_sink_path, del_tmp_sink_path list_of_sounds = list_all_sounds('sounds') samplerates = [0, 44100, 8000, 32000] diff --git a/python/tests/test_slicing.py b/python/tests/test_slicing.py index 0252f5d..c96ba52 100755 --- a/python/tests/test_slicing.py +++ b/python/tests/test_slicing.py @@ -3,8 +3,8 @@ from unittest import main 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 diff --git a/python/tests/test_source.py b/python/tests/test_source.py index ed51ead..4ec80fb 100755 --- a/python/tests/test_source.py +++ b/python/tests/test_source.py @@ -4,7 +4,7 @@ from nose2 import main from nose2.tools import params from numpy.testing import TestCase from aubio import source -from utils import list_all_sounds +from .utils import list_all_sounds list_of_sounds = list_all_sounds('sounds') samplerates = [0, 44100, 8000, 32000] |