Skip to content
Myr

test_pickle.py

This file

Path

tests/test_pickle.py

6 lines · 148 bytes · Python

Last changed by

Merge pull request #1613 from dairiki/bug.environment-not-pickleableDavid Lordbefore adoptiond5b8f66

History of this file

Take it

1import pickle234def test_environment(env):5    env = pickle.loads(pickle.dumps(env))6    assert env.from_string("x={{ x }}").render(x=42) == "x=42"