From: PotentialUser-54 <pot...@us...> - 2021-11-16 13:58:36
|
Hi Günter, I applied the patch by placing the patch inside my local Git repo copy and running `git apply work-around-UnicodeDecodeError.patch`. Then the test ran without failing prematurely, but the inner tests now have some fails. ```pwsh PS <redacted>\docutils> python .\docutils\test\alltests.py Testing Docutils 0.18.1b.dev with Python 2.7.18 on 2021-11-15 at 22:24:05 OS: Windows 10 10.0.19041 (win32, Windows-10-10.0.19041) Working directory: <redacted>\docutils\docutils\test Docutils package: <redacted>\docutils\docutils\docutils ...................................... test_functional.py: functional/tests/misc_rst_html4css1.py; test (test_functional.FunctionalTestCase): --- functional/expected/misc_rst_html4css1.html +++ functional/output/misc_rst_html4css1.html @@ -6,8 +6,8 @@ <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Additional tests with html4css1</title> <link rel="stylesheet" href="foo&bar.css" type="text/css" /> -<link rel="stylesheet" href="functional/input/data/html4css1.css" type="text/css" /> -<link rel="stylesheet" href="functional/input/data/math.css" type="text/css" /> +<link rel="stylesheet" href="functional/input/data\html4css1.css" type="text/css" /> +<link rel="stylesheet" href="functional/input/data\math.css" type="text/css" /> </head> <body> <div class="document" id="additional-tests-with-html4css1"> F........................................................................................................................................................................... ................................................................................F........................................................................................... ........................................................................................................................................................... test_writers\test_html4css1_template.py: totest['template'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) input: ================ Document Title ================ ---------- Subtitle ---------- :Author: Me .. footer:: footer text Section ======= Some text. -: expected +: output head_prefix = """\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\ - <link rel="stylesheet" href="C:/test.css" type="text/css" />""" ? ^ + <link rel="stylesheet" href="D:/test.css" type="text/css" />""" ? ^ body_prefix = """\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" head_prefix = """\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\ - <link rel="stylesheet" href="C:/test.css" type="text/css" />""" ? ^ + <link rel="stylesheet" href="D:/test.css" type="text/css" />""" ? ^ body_prefix = """\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" title = """\ Document Title""" subtitle = """\ Subtitle""" header = """\ """ footer = """\ <div class="footer"> <hr class="footer" /> footer text </div>""" meta = """\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="author" content="Me" />""" fragment = """\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" html_prolog = """\ <?xml version="1.0" encoding="%s" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" html_head = """\ <meta http-equiv="Content-Type" content="text/html; charset=%s" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" html_title = """\ <h1 class="title">Document Title</h1>""" html_subtitle = """\ <h2 class="subtitle" id="subtitle">Subtitle</h2>""" html_body = """\ <div class="document" id="document-title"> <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2> <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table> <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div> </div> <div class="footer"> <hr class="footer" /> footer text </div>""" F......................................................................................................... test_writers\test_s5.py: totest['basics'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) input: ============ Show Title ============ Title slide First Slide =========== Slide text. -: expected +: output <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Show Title</title> - <link rel="stylesheet" href="C:/test.css" type="text/css" /> ? ^ + <link rel="stylesheet" href="D:/test.css" type="text/css" /> ? ^ <!-- configuration parameters --> <meta name="defaultView" content="slideshow" /> <meta name="controlVis" content="hidden" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Show Title</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Show Title</h1> <p>Title slide</p> </div> <div class="slide" id="first-slide"> <h1>First Slide</h1> <p>Slide text.</p> </div> </div> </body> </html> F test_writers\test_s5.py: totest['settings'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) input: ================== Bogus Slide Show ================== We're just checking the settings -: expected +: output <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Bogus Slide Show</title> - <link rel="stylesheet" href="C:/test.css" type="text/css" /> ? ^ + <link rel="stylesheet" href="D:/test.css" type="text/css" /> ? ^ <!-- configuration parameters --> <meta name="defaultView" content="outline" /> <meta name="controlVis" content="visible" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Bogus Slide Show</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Bogus Slide Show</h1> <p>We're just checking the settings</p> </div> </div> </body> </html> F.ss........................................................................................................................................................................ ............................................................................................................................................................................ ............................................................................................................................................................................ .....................................ss..................................................................................................................................... ................................................................................................................................... ====================================================================== FAIL: test_functional.py: functional/tests/misc_rst_html4css1.py; test (test_functional.FunctionalTestCase) test_functional.py: functional/tests/misc_rst_html4css1.py ---------------------------------------------------------------------- Traceback (most recent call last): File "<redacted>\docutils\docutils\test\test_functional.py", line 175, in test self.assertEqual(output, expected, diff) File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 121, in assertEqual msg or '%s != %s' % _format_str(first, second)) AssertionError: The expected and actual output differs. Please compare the expected and actual output files: diff functional/expected/misc_rst_html4css1.html functional/output/misc_rst_html4css1.html ' If the actual output is correct, please replace the expected output and check it in: mv functional/output/misc_rst_html4css1.html functional/expected/misc_rst_html4css1.html svn add functional/expected/misc_rst_html4css1.html svn commit -m "<comment>" functional/expected/misc_rst_html4css1.html ====================================================================== FAIL: test_decode_path (test_utils.HelperFunctionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "<redacted>\docutils\docutils\test\test_utils.py", line 287, in test_decode_path self.assertEqual(strpath, u'sp├ñm') AssertionError: 'sp\xc3\xa4m' != u'sp\xe4m' ====================================================================== FAIL: test_writers\test_html4css1_template.py: totest['template'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 686, in test_publish self.compare_output(self.input, output, self.expected) File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 230, in compare_output raise error AssertionError: '''\ head_prefix = """\\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\\ <link rel="stylesheet" href="D:/test.css" type="text/css" />""" body_prefix = """\\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" head_prefix = """\\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\\ <link rel="stylesheet" href="D:/test.css" type="text/css" />""" body_prefix = """\\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" title = """\\ Document Title""" subtitle = """\\ Subtitle""" header = """\\ """ footer = """\\ <div class="footer"> <hr class="footer" /> footer text </div>""" meta = """\\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="author" content="Me" />""" fragment = """\\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" html_prolog = """\\ <?xml version="1.0" encoding="%s" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" html_head = """\\ <meta http-equiv="Content-Type" content="text/html; charset=%s" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" html_title = """\\ <h1 class="title">Document Title</h1>""" html_subtitle = """\\ <h2 class="subtitle" id="subtitle">Subtitle</h2>""" html_body = """\\ <div class="document" id="document-title"> <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2> <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table> <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div> </div> <div class="footer"> <hr class="footer" /> footer text </div>"""''' != '''\ head_prefix = """\\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\\ <link rel="stylesheet" href="C:/test.css" type="text/css" />""" body_prefix = """\\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" head_prefix = """\\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>""" head = """\\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" stylesheet = """\\ <link rel="stylesheet" href="C:/test.css" type="text/css" />""" body_prefix = """\\ </head> <body> <div class="document" id="document-title">""" body_pre_docinfo = """\\ <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2>""" docinfo = """\\ <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table>""" body = """\\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" body_suffix = """\\ </div> <div class="footer"> <hr class="footer" /> footer text </div> </body> </html>""" title = """\\ Document Title""" subtitle = """\\ Subtitle""" header = """\\ """ footer = """\\ <div class="footer"> <hr class="footer" /> footer text </div>""" meta = """\\ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="author" content="Me" />""" fragment = """\\ <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div>""" html_prolog = """\\ <?xml version="1.0" encoding="%s" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">""" html_head = """\\ <meta http-equiv="Content-Type" content="text/html; charset=%s" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <title>Document Title</title> <meta name="author" content="Me" />""" html_title = """\\ <h1 class="title">Document Title</h1>""" html_subtitle = """\\ <h2 class="subtitle" id="subtitle">Subtitle</h2>""" html_body = """\\ <div class="document" id="document-title"> <h1 class="title">Document Title</h1> <h2 class="subtitle" id="subtitle">Subtitle</h2> <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> </tbody> </table> <div class="section" id="section"> <h1>Section</h1> <p>Some text.</p> </div> </div> <div class="footer"> <hr class="footer" /> footer text </div>"""''' ====================================================================== FAIL: test_writers\test_s5.py: totest['basics'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 686, in test_publish self.compare_output(self.input, output, self.expected) File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 230, in compare_output raise error AssertionError: '''\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Show Title</title> <link rel="stylesheet" href="D:/test.css" type="text/css" /> <!-- configuration parameters --> <meta name="defaultView" content="slideshow" /> <meta name="controlVis" content="hidden" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Show Title</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Show Title</h1> <p>Title slide</p> </div> <div class="slide" id="first-slide"> <h1>First Slide</h1> <p>Slide text.</p> </div> </div> </body> </html>''' != '''\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Show Title</title> <link rel="stylesheet" href="C:/test.css" type="text/css" /> <!-- configuration parameters --> <meta name="defaultView" content="slideshow" /> <meta name="controlVis" content="hidden" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Show Title</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Show Title</h1> <p>Title slide</p> </div> <div class="slide" id="first-slide"> <h1>First Slide</h1> <p>Slide text.</p> </div> </div> </body> </html>''' ====================================================================== FAIL: test_writers\test_s5.py: totest['settings'][0]; test_publish (DocutilsTestSupport.WriterPublishTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 686, in test_publish self.compare_output(self.input, output, self.expected) File "<redacted>\docutils\docutils\test\DocutilsTestSupport.py", line 230, in compare_output raise error AssertionError: '''\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Bogus Slide Show</title> <link rel="stylesheet" href="D:/test.css" type="text/css" /> <!-- configuration parameters --> <meta name="defaultView" content="outline" /> <meta name="controlVis" content="visible" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Bogus Slide Show</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Bogus Slide Show</h1> <p>We\'re just checking the settings</p> </div> </div> </body> </html>''' != '''\ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18.1b.dev: http://docutils.sourceforge.net/" /> <meta name="version" content="S5 1.1" /> <title>Bogus Slide Show</title> <link rel="stylesheet" href="C:/test.css" type="text/css" /> <!-- configuration parameters --> <meta name="defaultView" content="outline" /> <meta name="controlVis" content="visible" /> <!-- style sheet links --> <script src="ui/default/slides.js" type="text/javascript"></script> <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" /> <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" /> <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" /> <style type="text/css"> #currentSlide {display: none;} </style> </head> <body> <div class="layout"> <div id="controls"></div> <div id="currentSlide"></div> <div id="header"> </div> <div id="footer"> <h1>Bogus Slide Show</h1> </div> </div> <div class="presentation"> <div class="slide" id="slide0"> <h1 class="title">Bogus Slide Show</h1> <p>We\'re just checking the settings</p> </div> </div> </body> </html>''' ---------------------------------------------------------------------- Ran 1463 tests in 5.649s FAILED (failures=5, skipped=4) Elapsed time: 6.100 seconds ``` --- ** [bugs:#434] Error when running the test suite for Docutils on Windows 10.** **Status:** open **Labels:** test **Created:** Sun Nov 14, 2021 03:34 PM UTC by PotentialUser-54 **Last Updated:** Tue Nov 16, 2021 03:46 AM UTC **Owner:** nobody Running the test suite for Docutils on Windows 10 using [the instructions](https://docutils.sourceforge.io/README.html#running-the-test-suite) fails. As instructed, I am now opening this bug report after checking that there is not already one. ```pwsh PS <redacted>\docutils\docutils\test> python alltests.py Traceback (most recent call last): File "<redacted>\docutils\docutils\test\alltests.py", line 93, in <module> suite = suite() File "<redacted>\docutils\docutils\test\alltests.py", line 80, in suite suite = package_unittest.loadTestModules(DocutilsTestSupport.testroot, File "<redacted>\docutils\docutils\test\package_unittest.py", line 102, in loadTestModules module = import_module(mod) File "<redacted>\docutils\docutils\test\package_unittest.py", line 133, in import_module mod = __import__(name) File "<redacted>\docutils\docutils\test\test_error_reporting.py", line 212, in <module> class SafeStringTests_locale(unittest.TestCase): File "<redacted>\docutils\docutils\test\test_error_reporting.py", line 225, in SafeStringTests_locale open(b'\xfc') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 0: invalid start byte ``` ```pwsh PS <redacted>\docutils\docutils\test> python ../tools/quicktest.py --version quicktest.py (Docutils 0.18 [release]) PS <redacted>\docutils\docutils\test> python --version Python 3.9.6 ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |