From e01211f0354c508fa90aaefd882b32086c1a8d18 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Tue, 20 May 2014 10:32:09 +0200 Subject: [PATCH] Doctest data are directed to an URL --- timeside/analyzer/core.py | 5 ++--- timeside/decoder/utils.py | 6 +++--- timeside/encoder/audiosink.py | 5 ++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index 8445353..98a1c7f 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -1136,9 +1136,8 @@ class Analyzer(Processor): return result -import os -DOCTEST_ALIAS = {'wav_file': os.path.join(os.path.dirname(__file__), - '../../tests/samples/sweep.mp3')} +DOCTEST_ALIAS = {'wav_file': + 'https://github.com/yomguy/timeside-samples/raw/master/samples/sweep.mp3'} if __name__ == "__main__": diff --git a/timeside/decoder/utils.py b/timeside/decoder/utils.py index b85030a..8666704 100644 --- a/timeside/decoder/utils.py +++ b/timeside/decoder/utils.py @@ -238,9 +238,9 @@ def sha1sum_numpy(np_array): # Define global variables for use with doctest -import os -DOCTEST_ALIAS = {'wav_file': os.path.join(os.path.dirname(__file__), - '../../tests/samples/guitar.wav')} +DOCTEST_ALIAS = {'wav_file': + 'https://github.com/yomguy/timeside-samples/raw/master/samples/guitar.wav'} + if __name__ == "__main__": import doctest diff --git a/timeside/encoder/audiosink.py b/timeside/encoder/audiosink.py index 2bfc5c7..9f01d3e 100644 --- a/timeside/encoder/audiosink.py +++ b/timeside/encoder/audiosink.py @@ -97,9 +97,8 @@ class AudioSink(GstEncoder): # Define global variables for use with doctest -import os -DOCTEST_ALIAS = {'wav_file': os.path.join(os.path.dirname(__file__), - '../../tests/samples/guitar.wav')} +DOCTEST_ALIAS = {'wav_file': + 'https://github.com/yomguy/timeside-samples/raw/master/samples/guitar.wav'} if __name__ == "__main__": import doctest -- 2.39.5