Commit 1be2355a authored by FichteFoll's avatar FichteFoll

Re-add TestContainer._write

It's used by ChannelRepositoryTools so I can't simply remove it.
The desired process is to update them first and remove all references.
parent a90f82bd
...@@ -552,6 +552,21 @@ class TestContainer(object): ...@@ -552,6 +552,21 @@ class TestContainer(object):
return cls._test_error, args return cls._test_error, args
@classmethod
def _write(cls, stream, string):
"""
Writes dianostic output to a file-like object.
:param stream:
Must have the methods .write() and .flush()
:param string:
The string to write - a newline will NOT be appended
"""
stream.write(string)
stream.flush()
class DefaultChannelTests(TestContainer, unittest.TestCase): class DefaultChannelTests(TestContainer, unittest.TestCase):
maxDiff = None maxDiff = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment