nose-devs/nose — Issue #213: Test functions with doctests always run, with --doctest
Author: jpellerin
Created: 2011-12-14 16:03:54+00:00
State: closed

What steps will reproduce the problem?
1. nosetests --with-doctest --doctest-tests -v test_doctest_tests.py

(with attached file test_doctest_tests.py)

What is the expected output? What do you see instead?

Expected:

Doctest: test_doctest_tests.test_doctest_function ... ok

----------------------------------------------------------------------
Ran 1 tests in xxxs

OK

Got:

Doctest: test_doctest_tests.test_doctest_function ... ok
Doctest: test_doctest_tests.test_doctest_function ... ok

----------------------------------------------------------------------
Ran 2 tests in xxxs

OK

What version of the product are you using? On what operating system?

http://python-nose.googlecode.com/svn/branches/0.10.0-stable revision 315,
Ubuntu Linux

Please provide any additional information below.

Test functions with only doctests always run, regardless of whether the
--doctest-tests option is given. If it *is* given, then each such test
function runs twice.

Google Code Info:
Issue #: 87
Author: j...@pobox.com
Created On: 2007-09-09T20:10:24.000Z
Closed On: 2007-09-26T22:21:06.000Z