]> git.parisson.com Git - timeside.git/commitdiff
Test: fix doctest
authorThomas Fillon <thomas@parisson.com>
Wed, 14 Jan 2015 19:53:01 +0000 (20:53 +0100)
committerThomas Fillon <thomas@parisson.com>
Wed, 14 Jan 2015 19:53:01 +0000 (20:53 +0100)
timeside/core/analyzer.py
timeside/plugins/analyzer/level.py

index f9de7a5032a1bdf1274326131edf2afc2b980f6f..b95d61a9eebaf137585b9bbc4ccc14e26e83fead 100644 (file)
@@ -946,9 +946,9 @@ class AnalyzerResultContainer(dict):
     '''
     >>> import timeside
     >>> from timeside.core.analyzer import Analyzer
-    >>> wav_file = 'tests/samples/sweep.mp3' # doctest: +SKIP
+    >>> from timeside.core.tools.test_samples import samples
+    >>> wav_file = samples['sweep.mp3']
     >>> d = timeside.core.get_processor('file_decoder')(wav_file)
-
     >>> a = Analyzer()
     >>> (d|a).run()
     >>> a.new_result() #doctest: +ELLIPSIS
@@ -1237,9 +1237,6 @@ class Analyzer(Processor):
 
         return result
 
-DOCTEST_ALIAS = {'wav_file':
-                 'https://github.com/yomguy/timeside-samples/raw/master/samples/sweep.mp3'}
-
 
 if __name__ == "__main__":
     import doctest
index 7806926e8f0582206584bb662686f37a36a54c6c..32955031a7eba2f74e9cb6001f46398f6d178839 100644 (file)
@@ -47,8 +47,8 @@ class Level(Analyzer):
     >>> print max.data
     [ 0.]
     >>> rms = level.results['level.rms']
-    >>> print rms.data
-    [-3.263]
+    >>> print rms.data  # doctest: +ELLIPSIS
+    [-3.26...]
     """
     implements(IValueAnalyzer)