You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/src/aspectlib/debug.py b/src/aspectlib/debug.py
index 2ee6225..85d13b5 100644
--- a/src/aspectlib/debug.py
+++ b/src/aspectlib/debug.py
@@ -20,7 +20,8 @@ def frame_iterator(frame):
Yields frames till there are no more.
"""
while frame:
- yield frame
+ if "aspectlib" not in frame.f_code.co_filename.split(os.path.sep):
+ yield frame
frame = frame.f_back
But the tests fail because the frames they are looking for are excluded by this. Not sure how to fix that, other than adding an aspectlib=True flag to debug.log for the tests to use.
The text was updated successfully, but these errors were encountered:
It's easy to skip the aspectlib frames:
But the tests fail because the frames they are looking for are excluded by this. Not sure how to fix that, other than adding an
aspectlib=True
flag to debug.log for the tests to use.The text was updated successfully, but these errors were encountered: