diff options
Diffstat (limited to 'machineout.py')
-rw-r--r-- | machineout.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/machineout.py b/machineout.py index c074e30..83251b0 100644 --- a/machineout.py +++ b/machineout.py | |||
@@ -8,7 +8,6 @@ It is intended to be use to integrate nose with your IDE such as Vim. | |||
8 | """ | 8 | """ |
9 | 9 | ||
10 | import re | 10 | import re |
11 | import os | ||
12 | import os.path | 11 | import os.path |
13 | import traceback | 12 | import traceback |
14 | from nose.plugins import Plugin | 13 | from nose.plugins import Plugin |
@@ -27,6 +26,8 @@ class dummystream: | |||
27 | pass | 26 | pass |
28 | def writeln(self, *arg): | 27 | def writeln(self, *arg): |
29 | pass | 28 | pass |
29 | def flush(self): | ||
30 | pass | ||
30 | 31 | ||
31 | def is_doctest_traceback(fname): | 32 | def is_doctest_traceback(fname): |
32 | return fname == doctest_fname | 33 | return fname == doctest_fname |
@@ -68,7 +69,7 @@ class NoseMachineReadableOutput(Plugin): | |||
68 | def addDeprecated(self, test): | 69 | def addDeprecated(self, test): |
69 | pass | 70 | pass |
70 | 71 | ||
71 | def addError(self, test, err, capt): | 72 | def addError(self, test, err): |
72 | self.addFormatted('error', err) | 73 | self.addFormatted('error', err) |
73 | 74 | ||
74 | def addFormatted(self, etype, err): | 75 | def addFormatted(self, etype, err): |
@@ -109,11 +110,11 @@ class NoseMachineReadableOutput(Plugin): | |||
109 | return fname[len(self.basepath)+1:] | 110 | return fname[len(self.basepath)+1:] |
110 | return fname | 111 | return fname |
111 | 112 | ||
112 | def addFailure(self, test, err, capt, tb_info): | 113 | def addFailure(self, test, err): |
113 | self.addFormatted('fail', err) | 114 | self.addFormatted('fail', err) |
114 | 115 | ||
115 | def setOutputStream(self, stream): | 116 | def setOutputStream(self, stream): |
116 | # grab for own use | 117 | # grab for own use |
117 | self.stream = stream | 118 | self.stream = stream |
118 | # return dummy stream to supress normal output | 119 | # return dummy stream to supress normal output |
119 | return dummystream() | 120 | return dummystream() |