summaryrefslogtreecommitdiffstats
path: root/contrib/python/Jinja2/py3/tests/test_features.py
diff options
context:
space:
mode:
authorfloatdrop <[email protected]>2022-02-10 16:47:15 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:15 +0300
commite63b84f1d39557d9e46ac380b1f388271894293c (patch)
tree338cdaff3fb027e030b847db66df06019a0e3149 /contrib/python/Jinja2/py3/tests/test_features.py
parentf60febb7ea449535e7b073c386c7ff0539637fc0 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/Jinja2/py3/tests/test_features.py')
-rw-r--r--contrib/python/Jinja2/py3/tests/test_features.py20
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 4f36458a7f9..d2b68c75d00 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())