Skip to content

Commit afc169e

Browse files
Update tests/jax_utils_test.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1cdfa4e commit afc169e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/jax_utils_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030

3131
def assert_max_traces(n):
3232
"""Decorator to assert that a function is traced at most n times."""
33+
from functools import wraps
3334
def decorator(fn):
3435
trace_count = {'count': 0}
3536

37+
@wraps(fn)
3638
def wrapped(*args, **kwargs):
3739
trace_count['count'] += 1
3840
if trace_count['count'] > n:

0 commit comments

Comments
 (0)