From 369164c04549c798b347fb52d23a08d0c5f0b365 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Wed, 14 Jan 2015 15:18:00 +0100 Subject: [PATCH] Doc: Fix doctest in intro.rst --- doc/source/intro.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/source/intro.rst b/doc/source/intro.rst index 0ce1eea..99913bf 100644 --- a/doc/source/intro.rst +++ b/doc/source/intro.rst @@ -60,17 +60,20 @@ Dive in To list all available plugins: -.. doctest:: +.. testcleanup:: - >>> import timeside - >>> timeside.core.list_processors() # doctest: +SKIP + os.remove('sweep.ogg') + os.remove('waveform.png') +.. doctest:: + >>> import timeside + >>> timeside.core.list_processors() # doctest: +SKIP Define some processors: -.. doctest:: +.. doctest:: >>> from timeside.core import get_processor >>> from timeside.core.tools.test_samples import samples @@ -82,13 +85,13 @@ Define some processors: Then run the *magic* pipeline: -.. doctest:: +.. doctest:: >>> (decoder | grapher | analyzer | encoder).run() Render the grapher results: -.. doctest:: +.. doctest:: >>> grapher.render(output='waveform.png') -- 2.39.5