diff options
Diffstat (limited to 'src/mailman/queue/tests')
| -rw-r--r-- | src/mailman/queue/tests/test_outgoing.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mailman/queue/tests/test_outgoing.py b/src/mailman/queue/tests/test_outgoing.py index 74850ce75..a0fe407c8 100644 --- a/src/mailman/queue/tests/test_outgoing.py +++ b/src/mailman/queue/tests/test_outgoing.py @@ -46,6 +46,7 @@ from mailman.interfaces.pending import IPendings from mailman.interfaces.usermanager import IUserManager from mailman.queue.outgoing import OutgoingRunner from mailman.testing.helpers import ( + LogFileMark, get_queue_messages, make_testable_runner, specialized_message_from_string as message_from_string) @@ -54,19 +55,6 @@ from mailman.utilities.datetime import factory, now -class LogFileMark: - def __init__(self, log_name): - self._log = logging.getLogger(log_name) - self._filename = self._log.handlers[0].filename - self._filepos = os.stat(self._filename).st_size - - def readline(self): - with open(self._filename) as fp: - fp.seek(self._filepos) - return fp.readline() - - - def run_once(qrunner): """Predicate for make_testable_runner(). |
