]> git.parisson.com Git - timeside.git/commitdiff
Doctest data are directed to an URL
authorThomas Fillon <thomas@parisson.com>
Tue, 20 May 2014 08:32:09 +0000 (10:32 +0200)
committerThomas Fillon <thomas@parisson.com>
Tue, 20 May 2014 08:32:09 +0000 (10:32 +0200)
timeside/analyzer/core.py
timeside/decoder/utils.py
timeside/encoder/audiosink.py

index 8445353e3f769c28ad361049417f9794988a7770..98a1c7f34c0de77941bfa7f386e6b7411102fa8d 100644 (file)
@@ -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__":
index b85030ab445274e0bf0ff5cb95bbda4bda139bc0..86667047b4bd431791f838974c4df1ca58dd9935 100644 (file)
@@ -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
index 2bfc5c7f80e63168881b02ab80c02d17b5e5fc12..9f01d3e71af5e44e612aa353c7b866349b6a8f3d 100644 (file)
@@ -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