Skip to content

Commit 7215334

Browse files
authored
Merge branch 'main' into instrumentation-use-sdk-defensively
2 parents 0a8c8f3 + ad2594e commit 7215334

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-jinja2/tests

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-jinja2/tests/test_jinja2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def setUp(self):
3434
# prevent cache effects when using Template('code...')
3535
if version.parse(jinja2.__version__) >= version.parse("3.0.0"):
3636
# by clearing functools.lru_cache
37-
jinja2.environment.get_spontaneous_environment.clear()
37+
jinja2.environment.get_spontaneous_environment.cache_clear()
3838
else:
3939
# by clearing jinja2.utils.LRUCache
4040
jinja2.environment._spontaneous_environments.clear() # pylint: disable=no-member

0 commit comments

Comments
 (0)