Merge pull request #5622 from jdufresne/inval

Fix "invalid escape sequence" warnings emitted during tests
This commit is contained in:
Takeshi KOMIYA
2018-11-14 00:47:44 +09:00
committed by GitHub

View File

@@ -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')