diff --git a/tests/test_async.py b/tests/test_async.py index f7e27922e..5f6e073a4 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -579,3 +579,7 @@ def test_nonrecursive_loop_filter(self, test_env_async): def test_bare_async(self, test_env_async): t = test_env_async.from_string('{% extends "header" %}') assert t.render(foo=42) == "[42|23]" + + def test_awaitable_property_slicing(self, test_env_async): + t = test_env_async.from_string('{% for x in a.b[:1] %}{{ x }}{% endfor %}') + assert t.render(a=dict(b=[1, 2, 3])) == "1"