diff --git a/tests/test_toc.py b/tests/test_toc.py index f881c2007..bb294543e 100644 --- a/tests/test_toc.py +++ b/tests/test_toc.py @@ -34,16 +34,17 @@ def test_full_toc(): expected = pathlib.Path(expected_path).read_bytes() # Github windows x32 seems to insert \r characters; maybe something to # do with the Python installation's line endings settings. + expected = expected.decode("utf8") expected = expected.replace('\r', '') + print(f'expected is:\n{expected!r}') toc = "\n".join([str(t) for t in doc.get_toc(False)]) toc += "\n" - #print(f'toc is:\n{toc!r}') + print(f'toc is:\n{toc!r}') #expected2 = expected.decode("utf8") - #print(f'expected2 is:\n{expected2!r}') # #print(f'toc encoded is:\n{toc.encode("utf8")!r}') #print(f'expected is:\n{expected!r}') - assert toc == expected.decode("utf8") + assert toc == expected def test_erase_toc():