Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for infinite depth tracing and fix pytest warning #235

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Apr 16, 2023

  1. Modify depth to depth_iterator to support float('inf') and also break…

    … if _frame_candidate is internal_frame
    Elijah Qi committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    b9f35db View commit details
    Browse the repository at this point in the history
  2. Title: Replace deprecated getName() method with name attribute

    Body:
    This commit resolves a DeprecationWarning in the tracer.py file. The deprecated getName() method, which is used to get the name of the current_thread object, has been replaced with the recommended name attribute.
    
    Changes:
    - Updated line 473 in tracer.py to use current_thread.name instead of current_thread.getName()
    
    With this change, the deprecation warning will no longer appear when running tests, and the code will be compatible with future releases of Python that may remove the deprecated method.
    Elijah Qi committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    24a8376 View commit details
    Browse the repository at this point in the history
  3. add test_depth_inf

    AndreaYanglq committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    93eecf6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8f5c2e3 View commit details
    Browse the repository at this point in the history
  5. test_infinite_depth_support.py

    Elijah Qi committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    c84286c View commit details
    Browse the repository at this point in the history
  6. Add infinite depth support for function call tracing

    This commit adds a new feature that enables infinite depth support for function call tracing in pysnooper. The test_infinite_depth_support test case has been added to verify the correct behavior of the feature. The test case covers the case of tracing a recursive function call with unlimited depth and checks the output against the expected values. The feature works by setting the depth parameter to float('inf') in the pysnooper.snoop function.
    Elijah Qi committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    70f69a5 View commit details
    Browse the repository at this point in the history