nose-devs/nose — Issue #228: bug in --with-isolation
Author: jpellerin
Created: 2011-12-14 16:04:29+00:00
State: open

This attached package illustrates a bug in the --with-isolation module of nose.

To see the bug do the following:

1. Save this package as something like c:/temp/bug on a windows
machine with Python 2.5 installed and nose nose-0.10.0b1.

2. Open a command prompt and enter the c:/temp directory.

3. Execute the following line:

> c:\Python25\Scripts\nosetests.exe --with-doctest --with-isolation bug/A.py

and the test should pass.

4. Execute the following line:

> c:\Python25\Scripts\nosetests.exe --with-doctest --with-isolation bug

and the test will fail (my failure message is shown below). Since
bug/A.py passes when run by itself but fails when nose is run on
the directory even using the --with-isolation switch, I conclude
that there is a bug in the --with-isolation plug-in.

BELOW is the complete failure.

F
======================================================================
FAIL: Doctest: bug.A.foo
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\python25\lib\doctest.py", line 2112, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for bug.A.foo
File "c:\temp\bug\A.py", line 7, in foo

----------------------------------------------------------------------
File "c:\temp\bug\A.py", line 10, in bug.A.foo
Failed example:
riskModel = CC.ccItem(bb.ProblemItem())
Exception raised:
Traceback (most recent call last):
File "c:\python25\lib\doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "", line 1, in
riskModel = CC.ccItem(bb.ProblemItem())
File "C:\temp\bug\CC.py", line 8, in __init__
'Expected bb.ProblemItem but got %s of %s' % (str(i),type(i)))
AssertionError: Expected bb.ProblemItem but got of

----------------------------------------------------------------------
Ran 1 test in 0.016s

FAILED (failures=1)

Google Code Info:
Issue #: 106
Author: emin.martinian
Created On: 2007-09-28T13:59:31.000Z
Closed On: 2007-10-12T21:57:48.000Z