[issue9017] What do you think about an Option Flags to enable/disable some chunk of doctest file ?

harobed report at bugs.python.org
Thu Jun 17 14:42:13 CEST 2010


New submission from harobed <stephane at harobed.org>:

Hi,

in some doctest, I need to stop doctest from a position because the following test is a draft, not implemented.

I dream something like this :

   >>> test_a()
   True

   >>> test_b()
   False

   #doctest: +DISABLE

   >>> test_c()
   True

   >>> test_d()
   False

   #doctest: +ENABLE

   >>> test_e()
   True

   >>> test_f()
   False

Here, test_c and test_d aren't executed.

What do you think about this idea ? If it is a good idea, I can implement it.

Thanks for your comments,
Stephane

----------
components: Tests
messages: 108008
nosy: harobed
priority: normal
severity: normal
status: open
title: What do you think about an Option Flags to enable/disable some chunk of doctest file ?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9017>
_______________________________________


More information about the Python-bugs-list mailing list