mirror of https://github.com/Textualize/rich.git
Blackify
This commit is contained in:
parent
2761f349e3
commit
9b2ef66bcc
|
@ -125,7 +125,7 @@ def test_filename_with_bracket():
|
||||||
except Exception:
|
except Exception:
|
||||||
console.print_exception()
|
console.print_exception()
|
||||||
exception_text = console.file.getvalue()
|
exception_text = console.file.getvalue()
|
||||||
assert "File \"<\string>\"" in exception_text
|
assert 'File "<\string>"' in exception_text
|
||||||
|
|
||||||
|
|
||||||
def test_filename_not_a_file():
|
def test_filename_not_a_file():
|
||||||
|
@ -135,7 +135,7 @@ def test_filename_not_a_file():
|
||||||
except Exception:
|
except Exception:
|
||||||
console.print_exception()
|
console.print_exception()
|
||||||
exception_text = console.file.getvalue()
|
exception_text = console.file.getvalue()
|
||||||
assert "File \"\string\"" in exception_text
|
assert 'File "\string"' in exception_text
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__": # pragma: no cover
|
if __name__ == "__main__": # pragma: no cover
|
||||||
|
|
Loading…
Reference in New Issue