summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Dairiki <dairiki@dairiki.org>2022-03-03 12:41:35 -0800
committerDavid Lord <davidism@gmail.com>2022-03-07 07:52:04 -0800
commitac3ac6c965462935f2d1c041ed9e28c1926bdfcc (patch)
treeb2266bd55ff5e2856bdf1a692fe7fea59ed70ae1 /tests
parent09907ef37891be76ab0a1a3dc1a3f7df667db959 (diff)
downloadjinja2-ac3ac6c965462935f2d1c041ed9e28c1926bdfcc.tar.gz
async_variant filters are pickleable
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pickle.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_pickle.py b/tests/test_pickle.py
new file mode 100644
index 0000000..b0f6bcf
--- /dev/null
+++ b/tests/test_pickle.py
@@ -0,0 +1,6 @@
+import pickle
+
+
+def test_environment(env):
+ env = pickle.loads(pickle.dumps(env))
+ assert env.from_string("x={{ x }}").render(x=42) == "x=42"