mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
14 lines
357 B
Python
14 lines
357 B
Python
from __future__ import annotations
|
|
|
|
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'))
|
|
assert repr(exc) == "ExtensionError('foo', Exception('bar'))"
|