diff --git a/tests/test_traceback.py b/tests/test_traceback.py index 52c2f199..8259c3c4 100644 --- a/tests/test_traceback.py +++ b/tests/test_traceback.py @@ -125,7 +125,7 @@ def test_filename_with_bracket(): except Exception: console.print_exception() exception_text = console.file.getvalue() - assert "File \"<\string>\"" in exception_text + assert 'File "<\string>"' in exception_text def test_filename_not_a_file(): @@ -135,7 +135,7 @@ def test_filename_not_a_file(): except Exception: console.print_exception() exception_text = console.file.getvalue() - assert "File \"\string\"" in exception_text + assert 'File "\string"' in exception_text if __name__ == "__main__": # pragma: no cover