This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c9f17b  Ensure all generator types are processed
4c9f17b is described below

commit 4c9f17b8f2cac565817f60b41ce7d1a0663d892a
Author: Sebb <[email protected]>
AuthorDate: Tue Jun 1 21:52:19 2021 +0100

    Ensure all generator types are processed
---
 tests/test-generators.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/test-generators.py b/tests/test-generators.py
index 4068724..6161d09 100755
--- a/tests/test-generators.py
+++ b/tests/test-generators.py
@@ -104,9 +104,8 @@ def run_tests(args):
                 continue
             test_args = collections.namedtuple('testargs', ['parse_html', 
'generator'])(parse_html, gen_type)
             archie = interfacer.Archiver(archiver, test_args)
-            while len(mboxfiles) > 0:
-                mboxfile = mboxfiles.pop(0)
-                sys.stderr.write("Starting to process %s\n" % mboxfile)
+            for mboxfile in mboxfiles:
+                sys.stderr.write("Starting to process %s using %s\n" % 
(mboxfile,gen_type))
                 mbox = mailbox.mbox(mboxfile, None if args.nomboxo else 
MboxoFactory, create=False)
                 no_messages = len(mbox.keys())
                 no_tests = len(tests)

Reply via email to