[issue9017] doctest option flag to enable/disable some chunk of doctests?

2012-10-27 Thread Ezio Melotti

Ezio Melotti added the comment:

I'm going to close this as rejected, because the feature doesn't seem too 
useful, there are available workarounds, and the addition of the ENABLE/DISABLE 
flags might add confusions.

--
nosy: +ezio.melotti
resolution:  - rejected
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 3.4 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-12-22 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo
stage: unit test needed - needs patch
versions: +Python 3.3 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread harobed

harobed steph...@harobed.org added the comment:

doctest.SKIP is like #doctest: +DISABLE but he don't have #doctest: +ENABLE 
feature.

doctest.SKIP disable all the bottom of test, DISABLE/ENABLE can SKIP only one 
part of test.

Regards,
Stephane

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

I'm not a great doctest user, but did you try to disable the SKIP directive at 
the end? something like doctest: -SKIP

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

AFAIR +SKIP always only refers to one Example anyway.

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread harobed

harobed steph...@harobed.org added the comment:

Ok, option +SKIP and -SKIP work well, look test.py file

I need maybe improve the documentation with an +SKIP and -SKIP example ?

Documentation section about SKIP option is here : 
http://docs.python.org/library/doctest.html?highlight=doctest.skip#doctest.SKIP

Regards,
Stephane

--
Added file: http://bugs.python.org/file19138/test.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

harobed, the -SKIP solution does not work. Doctest directives only apply to a 
single line.

After a quick search, I found two workarounds there:
http://stackoverflow.com/questions/1809037/python-doctest-skip-entire-block
- Replace  with 
or
- split the docstring, and add something like __dont_test__ =  in front of 
the second part; the string becomes part of a statement and won't be parsed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-05 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

There is already doctest.SKIP. Isn't it already what you want?

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-06-17 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
components: +Library (Lib) -Tests
stage:  - unit test needed
title: What do you think about an Option Flags to enable/disable some chunk of 
doctest file ? - doctest option flag to enable/disable some chunk of doctests?
type:  - feature request
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9017
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com