sphinx/tests/test_errors.py

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

14 lines
357 B
Python
Raw Normal View History

from __future__ import annotations
from sphinx.errors import ExtensionError
def test_extension_error_repr():
2024-08-11 08:58:56 -05:00
exc = ExtensionError('foo')
assert repr(exc) == "ExtensionError('foo')"
def test_extension_error_with_orig_exc_repr():
2024-08-11 08:58:56 -05:00
exc = ExtensionError('foo', Exception('bar'))
2022-06-16 13:33:55 -05:00
assert repr(exc) == "ExtensionError('foo', Exception('bar'))"