MCPcopy
hub / github.com/pallets/jinja / test_pickleable_syntax_error

Method test_pickleable_syntax_error

tests/test_debug.py:77–81  ·  view source on GitHub ↗
(self, fs_env)

Source from the content-addressed store, hash-verified

75 )
76
77 def test_pickleable_syntax_error(self, fs_env):
78 original = TemplateSyntaxError("bad template", 42, "test", "test.txt")
79 unpickled = pickle.loads(pickle.dumps(original))
80 assert str(original) == str(unpickled)
81 assert original.name == unpickled.name
82
83 def test_include_syntax_error_source(self, filesystem_loader):
84 e = Environment(

Callers

nothing calls this directly

Calls 1

TemplateSyntaxErrorClass · 0.90

Tested by

no test coverage detected