blob: 6378760af81832afddbad1a0f02eb875f3f78cc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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'))"
|