New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

Due to missed splitlines() in test_pydoc the HTML output was not tested 
correctly. Instead of testing that the actual output contains every *line* from 
the expected output it tested that the actual output contains every *character* 
from the expected output. The test would pass with any actual output which 
contains all Latin letters and some punctuation.

The following PR fixes this bug and makes the test even more strict. Now it 
tests that the actual output contains the same lines as the expected output, in 
the same order, ignoring indentation and empty lines.

----------
components: Tests
messages: 415396
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix test_html_doc in test_pydoc
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue47042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to