From cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 19:25:40 +0200 Subject: Adding upstream version 7.2.6. Signed-off-by: Daniel Baumann --- tests/test_errors.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_errors.py (limited to 'tests/test_errors.py') diff --git a/tests/test_errors.py b/tests/test_errors.py new file mode 100644 index 0000000..6378760 --- /dev/null +++ b/tests/test_errors.py @@ -0,0 +1,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'))" -- cgit v1.2.3