From: Guillaume Pellerin Date: Tue, 3 Dec 2013 18:29:01 +0000 (+0100) Subject: add a display test to set the doctest options (not fully fixed) X-Git-Tag: 0.5.2~8^2~3^2~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f8b709c0ba087c06701e8b5ce523edc4b35ad4f1;p=timeside.git add a display test to set the doctest options (not fully fixed) --- diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index e7ff54a..139cf55 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -29,6 +29,7 @@ import numpy from collections import OrderedDict import h5py import h5tools +import os numpy_data_types = [ @@ -793,12 +794,12 @@ class AnalyzerResultContainer(dict): >>> d = timeside.decoder.FileDecoder(wavFile, start=1) >>> a = timeside.analyzer.Analyzer() - >>> (d|a).run() #doctest: +SKIP - >>> a.new_result() #doctest: +SKIP + >>> (d|a).run() #doctest: %s + >>> a.new_result() #doctest: %s FrameValueResult(id_metadata=IdMetadata(id='analyzer', name='Generic analyzer', unit='', description='', date='...', version='...', author='TimeSide', uuid='...'), data_object=DataObject(value=array([], dtype=float64)), audio_metadata=AudioMetadata(uri='http://...', start=1.0, duration=7..., is_segment=True, channels=None, channelsManagement=''), frame_metadata=FrameMetadata(samplerate=44100, blocksize=8192, stepsize=8192), parameters={}) >>> resContainer = timeside.analyzer.core.AnalyzerResultContainer() - ''' + ''' % (doctest_option, doctest_option) def __init__(self, analyzer_results=None): super(AnalyzerResultContainer, self).__init__()