nose-devs/nose — Issue #387: same id is assigned to all tests created by a single test generator
Author: jpellerin
Created: 2011-12-14 16:09:41+00:00
State: open

With this file

def test_gener():
def inner1():
pass
inner1.description = 'inner1'
yield inner1
def inner2():
assert False
inner2.description = 'inner2'
yield inner2

run

$ nosetests -v --with-id
#1 inner1 ... ok
inner2 ... FAIL

and

$ nosetests -v --with-id --failed
#1 inner1 ... ok
inner2 ... FAIL

The inner1 should be #1 and inner2 should be #2. With --failed only inner2 should be run.

$ nosetests --version
nosetests version 0.11.1

$ uname -a
Linux ubuntu 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 i686 GNU/Linux

Google Code Info:
Issue #: 361
Author: zbynek.winkler
Created On: 2010-09-05T09:44:48.000Z
Closed On: