diff options
author | floatdrop <floatdrop@yandex-team.ru> | 2022-02-10 16:47:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:15 +0300 |
commit | 4267de875ca703ff841f2e025723dadc78f3cc02 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/python/Jinja2/py3/tests/test_features.py | |
parent | e63b84f1d39557d9e46ac380b1f388271894293c (diff) | |
download | ydb-4267de875ca703ff841f2e025723dadc78f3cc02.tar.gz |
Restoring authorship annotation for <floatdrop@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Jinja2/py3/tests/test_features.py')
-rw-r--r-- | contrib/python/Jinja2/py3/tests/test_features.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/python/Jinja2/py3/tests/test_features.py b/contrib/python/Jinja2/py3/tests/test_features.py index d2b68c75d0..4f36458a7f 100644 --- a/contrib/python/Jinja2/py3/tests/test_features.py +++ b/contrib/python/Jinja2/py3/tests/test_features.py @@ -1,14 +1,14 @@ -import pytest - +import pytest + from jinja2 import Template - - + + # Python < 3.7 -def test_generator_stop(): +def test_generator_stop(): class X: - def __getattr__(self, name): - raise StopIteration() - + def __getattr__(self, name): + raise StopIteration() + t = Template("a{{ bad.bar() }}b") - with pytest.raises(RuntimeError): - t.render(bad=X()) + with pytest.raises(RuntimeError): + t.render(bad=X()) |