diff options
author | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
---|---|---|
committer | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/MarkupSafe/py2/tests/test_exception_custom_html.py | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
download | ydb-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.py | 21 |
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) |