Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for coverage's broken print functionality #380

Open
jpellerin opened this issue Dec 14, 2011 · 0 comments
Open

Fix for coverage's broken print functionality #380

jpellerin opened this issue Dec 14, 2011 · 0 comments
Assignees

Comments

@jpellerin
Copy link
Member

What steps will reproduce the problem?
1.run autonose
2. on a test with a print statement
3. first time it will pass, after that it will fail w/ NoneType exception

What is the expected output? What do you see instead?
a working print when an assert fails

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

Please provide any additional information below.

Running tests at 00:07:09

F.

FAIL: test_example (test.MyTest)

Traceback (most recent call last):
File "/Users/along/Desktop/nosetest/test.py", line 6, in test_example
assert False
AssertionError:
-------------------- >> begin captured stdout << ---------------------
Hi

--------------------- >> end captured stdout << ----------------------


Ran 2 tests in 0.005s

FAILED (failures=1)

should be seen but the a stock install will produce the error found here:
http://github.com/gfxmonk/autonose/issues#issue/13

commenting out line 70 of capture.py will fix this.

def formatError(self, test, err):
    """Add captured output to error report.
    """
    test.capturedOutput = output = self.buffer
    #self._buf = None

self._buf = None

is the problematic code.

Google Code Info:
Issue #: 353
Author: antl...@gmail.com
Created On: 2010-07-21T04:52:56.000Z
Closed On:

@ghost ghost assigned jpellerin Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant