Skip to content

Commit

Permalink
Merge branch 'main' into instrumentation-use-sdk-defensively
Browse files Browse the repository at this point in the history
  • Loading branch information
owais authored Feb 1, 2022
2 parents 0a8c8f3 + ad2594e commit 7215334
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 7215334

Please sign in to comment.