Skip to content

Commit

Permalink
Limit stacktrace to check performance impact
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed Aug 18, 2024
1 parent 590f509 commit b4eb111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfakefs/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def starts_with(path, string):
return path.startswith(string)
return path.lower().startswith(string.lower())

stack = traceback.extract_stack()
stack = traceback.extract_stack(limit=6)

# handle the case that we try to call the original `open_code`
# (since Python 3.12)
Expand Down

0 comments on commit b4eb111

Please sign in to comment.