mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix "invalid escape sequence" warnings emitted during tests
sphinx/tests/test_quickstart.py:221: DeprecationWarning: invalid escape sequence '\*' content = filename.bytes().decode('unicode-escape') sphinx/tests/test_quickstart.py:221: DeprecationWarning: invalid escape sequence '\`' content = filename.bytes().decode('unicode-escape')
This commit is contained in:
parent
a0aee7a0f3
commit
444a7212b6
@ -224,7 +224,7 @@ def test_generated_files_eol(tempdir):
|
||||
qs.generate(d)
|
||||
|
||||
def assert_eol(filename, eol):
|
||||
content = filename.bytes().decode('unicode-escape')
|
||||
content = filename.bytes().decode()
|
||||
assert all([l[-len(eol):] == eol for l in content.splitlines(True)])
|
||||
|
||||
assert_eol(tempdir / 'make.bat', '\r\n')
|
||||
|
Loading…
Reference in New Issue
Block a user