Discussion:
[Docutils-develop] [docutils:bugs] #318 Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)
RBV
2017-05-30 21:54:02 UTC
Permalink
---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** open
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Tue May 30, 2017 09:54 PM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
Günter Milde
2017-05-31 09:44:53 UTC
Permalink
Thank you for reporting.
Unfortunately, I cannot reproduce here (works under Linux) and the output does not tell what went wrong.
Could you re-try with the appended patch to test_io.py?


Attachments:

- [test_io.patch](https://sourceforge.net/p/docutils/bugs/_discuss/thread/b947e869/c032/attachment/test_io.patch) (959 Bytes; text/x-diff)


---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** open
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Tue May 30, 2017 09:54 PM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
RBV
2017-05-31 18:01:37 UTC
Permalink
Finally got the merge corrrect and in *test3* re-ran `python alltests.py`.

Error message produced is of course now slightly different. I've attached today's version as *2017-05-31_1050_docutils0.14TestError.txt*. Key portion of trace being:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 122, in test_heuristics_no_utf8
% (input.successful_encoding, probed_encodings))
AssertionError: guessed encoding 'None' differs from probed encodings ('cp1252', 'latin-1')

----------------------------------------------------------------------
Ran 1346 tests in 29.272s

FAILED (failures=1)
Elapsed time: 34.526 seconds
~~~

Hope this helps,
RBV
SFO



Attachments:

- [2017-05-31_1050_docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/_discuss/thread/b947e869/5081/attachment/2017-05-31_1050_docutils0.14TestError.txt) (2.7 kB; text/plain)


---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** open
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Wed May 31, 2017 09:44 AM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
Günter Milde
2017-05-31 21:21:53 UTC
Permalink
Thank you for testing.
I assume that the failure is a "false positive": under Py3k, files are "automagically" decoded to Unicode by source.read() and only if this fails, the heuristic kicks in (see docutils/io.py lines 253-279).
In your case, with an 8-bit encoding in the locale, the first try works and hence "successfull_encoding" remains "None".
We will have to find a way to prevent the false positive but keep the test active.


---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** open
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Wed May 31, 2017 06:01 PM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
Günter Milde
2017-06-01 07:13:13 UTC
Permalink
- **status**: open --> closed-fixed
- **Comment**:

The problem should be fixed in revision 8098.
Please re-open if it persists with a repository snapshot or after applying https://sourceforge.net/p/docutils/code/8098/.
Thank you for test and report.



---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** closed-fixed
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Wed May 31, 2017 09:21 PM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
Günter Milde
2017-06-01 07:15:09 UTC
Permalink
Post by RBV
Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.
These can be safly ignored if there are no other errors/failures.


---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** closed-fixed
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Thu Jun 01, 2017 07:13 AM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
RBV
2017-06-01 17:16:54 UTC
Permalink
FYI, I experienced a one-time `WinError 145` error after replacing *docutils-0.14rc1/test3/test_io.py* with version `8098 2017-05-31 21:34:55Z`.

I have attached an annotated trace of the steps and error as *2017-06-01_0940_docutils0.14-fix8098-error.txt*.

After receiving the error one time, it no longer occurs -- I'm merely adding this information in the hope it may be helpful.

Cheers,
RBV



Attachments:

- [2017-06-01_0940_docutils0.14-fix8098-error.txt](https://sourceforge.net/p/docutils/bugs/_discuss/thread/b947e869/0a10/attachment/2017-06-01_0940_docutils0.14-fix8098-error.txt) (4.9 kB; text/plain)


---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** closed-fixed
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Thu Jun 01, 2017 07:15 AM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
Günter Milde
2017-06-01 19:51:41 UTC
Permalink
looking at "\test3\test_functional.py", line 64, in clear_output_directory", I assuem this one-time error occured because of some leftovers from an earlier unfinished test run.
No need to worry if it runs fine now.
Thanks for reporting.


---

** [bugs:#318] Docutils 0.14rc1 test3/alltests: FAIL: test_heuristics_no_utf8 (test_io.InputTests)**

**Status:** closed-fixed
**Group:** Default
**Labels:** test
**Created:** Tue May 30, 2017 09:54 PM UTC by RBV
**Last Updated:** Thu Jun 01, 2017 05:16 PM UTC
**Owner:** nobody
**Attachments:**

- [docutils0.14TestError.txt](https://sourceforge.net/p/docutils/bugs/318/attachment/docutils0.14TestError.txt) (2.6 kB; text/plain)


Per the instructions on http://docutils.sourceforge.net/README.html#running-the-test-suite "If any of the tests fail...", see attached (Git) BASH on Windows console trace "docutils0.14TestError.txt".

As indicated in attached file, Windows 7 64-bit, Python 3.5.2, running commands from the BASH shell installed by Git (rather than Windows' own CMD console).

**STEPS:**

1. In *docutils-0.14rc1*, directory *test3*, *ran python alltests.py*.

**RESULT:** All but one test completed without error:

~~~
======================================================================
FAIL: test_heuristics_no_utf8 (test_io.InputTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\rbv\Desktop\docutils-0.14rc1\test3\test_io.py", line 118, in test_heuristics_no_utf8
'latin-1'))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1346 tests in 23.150s

FAILED (failures=1)
Elapsed time: 29.843 seconds
~~~

Also per the attached TXT file, there were some instances of "The system cannot find the path specified" mesages.

RBV
SFO


---

Sent from sourceforge.net because docutils-***@lists.sourceforge.net 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.
Loading...