mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix repr of paths on Windows
This commit is contained in:
@@ -769,7 +769,7 @@ class StandaloneHTMLBuilder(Builder):
|
||||
force=True,
|
||||
)
|
||||
except Exception as err:
|
||||
logger.warning(__('cannot copy image file %r: %s'),
|
||||
logger.warning(__("cannot copy image file '%s': %s"),
|
||||
self.srcdir / src, err)
|
||||
|
||||
def copy_download_files(self) -> None:
|
||||
|
||||
@@ -387,7 +387,7 @@ def test_html_remove_sources_before_write_gh_issue_10786(app, warning):
|
||||
assert len(ws) >= 1
|
||||
|
||||
file = os.fsdecode(target)
|
||||
assert f'WARNING: cannot copy image file {file!r}: {file!s} does not exist' == ws[-1]
|
||||
assert f"WARNING: cannot copy image file '{file}': {file} does not exist" == ws[-1]
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='domain-py-python_maximum_signature_line_length',
|
||||
|
||||
Reference in New Issue
Block a user