Package: python-readme-renderer / 44.0-3

Metadata

Package Version Patches format
python-readme-renderer 44.0-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
docutils 0.22.patch | (download)

tests/test_cli.py | 47 41 + 6 - 0 !
1 file changed, 41 insertions(+), 6 deletions(-)

 fix a test failure caused by an internal docutils `open()` call

docutils 0.22 introduced an RST stylesheet feature
that must be able to open files during RST-to-HTML rendering.

The original design of the `test_cli_explicit_format` test
patched `pathlib.Path.open()` so it would always return the
same open file instance...which was always closed on first use.
This caused a failure when docutils tried to open `minimal.css`:

```
ValueError: I/O operation on closed file.
```

This change introduces a more complex mocking strategy
that documents and meets the current technical requirements.

pygments 2.19.patch | (download)

tests/fixtures/test_CommonMark_008.html | 6 3 + 3 - 0 !
tests/fixtures/test_GFM_doublequotes.html | 2 1 + 1 - 0 !
tests/fixtures/test_GFM_highlight.html | 2 1 + 1 - 0 !
tests/fixtures/test_GFM_highlight_default_py.html | 2 1 + 1 - 0 !
tests/fixtures/test_GFM_malicious_pre.html | 2 1 + 1 - 0 !
tests/fixtures/test_rst_008.html | 6 3 + 3 - 0 !
6 files changed, 10 insertions(+), 10 deletions(-)

 update test outputs to fix test fail