diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-05-20 09:01:58 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-05-20 09:13:14 +0300 |
commit | 113478c6a7e201ab2d7ad78d9edbc28800283a75 (patch) | |
tree | 98b88d8dc4bfe5c664f813ead96eefb0f456e2a9 /contrib/python/Jinja2/py3/tests/test_api.py | |
parent | 685fde8e2a4228200a88a5987a061329f7c59323 (diff) | |
download | ydb-113478c6a7e201ab2d7ad78d9edbc28800283a75.tar.gz |
Update contrib/python/Jinja2/py3 to 3.1.4
264ae85f13f4a11226be8b846079da1aece08b50
Diffstat (limited to 'contrib/python/Jinja2/py3/tests/test_api.py')
-rw-r--r-- | contrib/python/Jinja2/py3/tests/test_api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/python/Jinja2/py3/tests/test_api.py b/contrib/python/Jinja2/py3/tests/test_api.py index 4db3b4a96a..ff3fcb138b 100644 --- a/contrib/python/Jinja2/py3/tests/test_api.py +++ b/contrib/python/Jinja2/py3/tests/test_api.py @@ -150,7 +150,8 @@ class TestExtendedAPI: assert t.render(foo="<foo>") == "<foo>" def test_sandbox_max_range(self, env): - from jinja2.sandbox import SandboxedEnvironment, MAX_RANGE + from jinja2.sandbox import MAX_RANGE + from jinja2.sandbox import SandboxedEnvironment env = SandboxedEnvironment() t = env.from_string("{% for item in range(total) %}{{ item }}{% endfor %}") @@ -264,7 +265,7 @@ class TestUndefined: def test_undefined_and_special_attributes(self): with pytest.raises(AttributeError): - Undefined("Foo").__dict__ + Undefined("Foo").__dict__ # noqa B018 def test_undefined_attribute_error(self): # Django's LazyObject turns the __class__ attribute into a |