aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py')
-rw-r--r--contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py b/contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py
deleted file mode 100644
index 5f9ffde438d..00000000000
--- a/contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*- coding: utf-8 -*-
-import pytest
-
-from markupsafe import escape
-
-
-class CustomHtmlThatRaises(object):
- def __html__(self):
- raise ValueError(123)
-
-
-def test_exception_custom_html():
- """Checks whether exceptions in custom __html__ implementations are
- propagated correctly.
-
- There was a bug in the native implementation at some point:
- https://github.com/pallets/markupsafe/issues/108
- """
- obj = CustomHtmlThatRaises()
- with pytest.raises(ValueError):
- escape(obj)