Skip to content

Commit

Permalink
fix broken jinja2 test (open-telemetry#892)
Browse files Browse the repository at this point in the history
* fix broken jinja2 test

* fix test ...
  • Loading branch information
Alex Boten authored and ashu658 committed Feb 2, 2022
1 parent 1484c4a commit 7f03f93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUp(self):
# prevent cache effects when using Template('code...')
if version.parse(jinja2.__version__) >= version.parse("3.0.0"):
# by clearing functools.lru_cache
jinja2.environment.get_spontaneous_environment.clear()
jinja2.environment.get_spontaneous_environment.cache_clear()
else:
# by clearing jinja2.utils.LRUCache
jinja2.environment._spontaneous_environments.clear() # pylint: disable=no-member
Expand Down

0 comments on commit 7f03f93

Please sign in to comment.