bobber6467 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

--with-doctest and multiprocess doesn't play well together #451

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Prepare the following file as t.py

def test_x():
    assert 1 + 1 == 2

def test_y():
    """
    >>> 2 + 3
    5
    """

2. execute

$ nosetests --with-doctest --processes=4

What is the expected output?

Two tests are run, instead of 5.

What do you see instead?

t.test_x ... ok
Doctest: test_y ... ok
t.test_x ... ok
Doctest: test_y ... ok
Doctest: t.test_y ... ok

----------------------------------------------------------------------
Ran 5 tests in 0.066s

OK

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

$ nosetests --version
nosetests version 1.0.0

Mac OS X 10.6.8

Original issue reported on code.google.com by anh.hai....@gmail.com on 1 Sep 2011 at 5:15

GoogleCodeExporter commented 8 years ago
fixed in current trunk

Original comment by liucou...@gmail.com on 5 Nov 2011 at 9:58