From aeef20277fe09456b0ce689161aabbf27d79c514 Mon Sep 17 00:00:00 2001 From: Maciek Starzyk Date: Sat, 2 Jan 2010 10:16:30 +0100 Subject: Removed extra parameters from addError() and addFailure() --- machineout.py | 9 +++++---- 1 file 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. """ import re -import os import os.path import traceback from nose.plugins import Plugin @@ -27,6 +26,8 @@ class dummystream: pass def writeln(self, *arg): pass + def flush(self): + pass def is_doctest_traceback(fname): return fname == doctest_fname @@ -68,7 +69,7 @@ class NoseMachineReadableOutput(Plugin): def addDeprecated(self, test): pass - def addError(self, test, err, capt): + def addError(self, test, err): self.addFormatted('error', err) def addFormatted(self, etype, err): @@ -109,11 +110,11 @@ class NoseMachineReadableOutput(Plugin): return fname[len(self.basepath)+1:] return fname - def addFailure(self, test, err, capt, tb_info): + def addFailure(self, test, err): self.addFormatted('fail', err) def setOutputStream(self, stream): # grab for own use - self.stream = stream + self.stream = stream # return dummy stream to supress normal output return dummystream() -- cgit v1.2.3