]> git.parisson.com Git - timeside.git/commitdiff
Doc: Fix doctest in intro.rst
authorThomas Fillon <thomas@parisson.com>
Wed, 14 Jan 2015 14:18:00 +0000 (15:18 +0100)
committerThomas Fillon <thomas@parisson.com>
Wed, 14 Jan 2015 15:11:19 +0000 (16:11 +0100)
doc/source/intro.rst

index 0ce1eeaa860f6cf03d1d23b78ae1de192d920d8f..99913bf15ceccd70de46b83aabec8b68bb6584c0 100644 (file)
@@ -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')