From: Thomas Fillon Date: Tue, 20 May 2014 08:32:09 +0000 (+0200) Subject: Doctest data are directed to an URL X-Git-Tag: 0.5.5~1^2~1^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e01211f0354c508fa90aaefd882b32086c1a8d18;p=timeside.git Doctest data are directed to an URL --- 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