SF.net SVN: docutils:[9751 ] trunk/sandbox/manpage-wri ter/multiple_definition_list _terms.py

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9751
          http://sourceforge.net/p/docutils/code/9751
Author:   grubert
Date:     2024-06-12 15:10:40 +0000 (Wed, 12 Jun 2024)
Log Message:
-----------
test report

Modified Paths:
--------------
    trunk/sandbox/manpage-writer/multiple_definition_list_terms.py

Modified: trunk/sandbox/manpage-writer/multiple_definition_list_terms.py
===================================================================
--- trunk/sandbox/manpage-writer/multiple_definition_list_terms.py	2024-06-11 08:55:31 UTC (rev 9750)
+++ trunk/sandbox/manpage-writer/multiple_definition_list_terms.py	2024-06-12 15:10:40 UTC (rev 9751)
@@ -127,13 +127,20 @@
     outf = f'output/{filename}'
     with open(outf, 'bw') as outfile:
         outfile.write(output)
-        print(f'output written to {outf}')
+        print(f'output written to {outf}', end=": ")
     expf = f'expected/{filename}'
     if os.path.exists(expf):
         d = difflib.unified_diff(open(expf).readlines(), 
                                  open(outf).readlines(),
                                  fromfile=expf, tofile=outf)
-        print("".join(list(d)))
+        dl = list(d)
+        if dl:
+            print("ERROR")
+            print("".join(dl))
+        else:
+            print("OK")
+    else:
+        print(" UNCHECKED")
 
 
 # output = publish_from_doctree(doctree, writer_name='odf')

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.