From: Günter M. <mi...@us...> - 2021-11-18 10:16:09
|
> Unfortunately, I'm getting the same number of failures. I postponed solving the wrong drive letter, sorry for not making this clear. On the up side, there is a change: the functional test for the "--stylesheet" argument "misc_rst_html4css1.py" now works as expected. Instead the added test for utils.get_stylesheet_list() fails: I need to improve on my fix. > I noticed it was expecting the drive letter to be C, instead of D in > the log. However, I am running this test on my D drive. This is a "false positive" (the drive letter was hard-coded to 'C:' in the tests). > 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' And this is another false positive (wrong sample when the file system encoding is not utf8). Both should be solved in [r8892]. The new test fails with: > - ['data\\ham.css', 'missing.css'] > ? ^^ > + ['data/ham.css', 'missing.css'] > ? ^ this should be fixed in [r8892], too. Thank your for test and report. --- ** [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:** Thu Nov 18, 2021 01:13 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. |