From: PotentialUser-54 <pot...@us...> - 2021-11-19 02:39:44
|
Hi Günter, I ran the tests again, and it works perfectly now. (On Python 2) Thanks for the quick fix! ```pwsh PS D:\<redacted>\docutils-code-r8892-trunk> python docutils/test/alltests.py Testing Docutils 0.18.1b.dev with Python 2.7.18 on 2021-11-18 at 21:04:09 OS: Windows 10 10.0.19041 (win32, Windows-10-10.0.19041) Working directory: D:\<redacted>\docutils-code-r8892-trunk\docutils\test Docutils package: D:\<redacted>\docutils-code-r8892-trunk\docutils\docutils ............................................................................................................................................................................ ............................................................................................................................................................................ ............................................................................................................................................................................ .....................................................................................................................................ss..................................... ............................................................................................................................................................................ ............................................................................................................................................................................ ........................................................................................................................................................................ss.. ............................................................................................................................................................................ .......................................................................................... ---------------------------------------------------------------------- Ran 1466 tests in 7.142s OK (skipped=4) Elapsed time: 8.299 seconds ``` However, on Python 3, it fails with ```pwsh PS D:\<redacted>\docutils-code-r8892-trunk> py docutils/test/alltests.py Unable to create process using '/bin/sh docutils/test/alltests.py' ``` With both Python version 3.9.6 and 3.10.0 (the later is a new install). I also tried using backslashes instead of forwardslashes, adding `./` or `.\` before the path, however everything gives the same error. --- ** [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 10:16 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. |