remove "StdCapture*.call" classmethod because pytest does not use it.

--HG--
branch : capsimple1
This commit is contained in:
holger krekel
2014-01-25 19:43:57 +01:00
parent 3cf4e133cc
commit 18e12cbd67
2 changed files with 0 additions and 47 deletions
-16
View File
@@ -409,22 +409,6 @@ class EncodedFile(object):
class Capture(object):
def call(cls, func, *args, **kwargs):
""" return a (res, out, err) tuple where
out and err represent the output/error output
during function execution.
call the given function with args/kwargs
and capture output/error during its execution.
"""
so = cls()
so.startall()
try:
res = func(*args, **kwargs)
finally:
out, err = so.reset()
return res, out, err
call = classmethod(call)
def reset(self):
""" reset sys.stdout/stderr and return captured output as strings. """
if hasattr(self, '_reset'):