Files
sphinx/tests/test_errors.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
321 B
Python
Raw Normal View History

2018-09-08 10:20:15 -07:00
from sphinx.errors import ExtensionError
def test_extension_error_repr():
exc = ExtensionError("foo")
assert repr(exc) == "ExtensionError('foo')"
def test_extension_error_with_orig_exc_repr():
exc = ExtensionError("foo", Exception("bar"))
2022-06-17 03:33:55 +09:00
assert repr(exc) == "ExtensionError('foo', Exception('bar'))"