• 
      

    Improve the error for unexpected function call spies in operations.

    Review Request #11798 — Created Aug. 20, 2021 and submitted

    Information

    kgb
    master

    Reviewers

    kgb

    In match-based spy operations, exceptions are raised when a call is made
    to a spy that either exceeds or doesn't match the list of expected
    calls.

    To help with debugging these situations, the exception now includes the
    call that triggered the exception.

    This uncovered an issue in SpyCall.__repr__ where a ) was missing
    near the end of the string.

    Unit tests pass on Python 2 and 3.

    Summary ID
    Improve the error for unexpected function call spies in operations.
    In match-based spy operations, exceptions are raised when a call is made to a spy that either exceeds or doesn't match the list of expected calls. To help with debugging these situations, the exception now includes the call that triggered the exception. This uncovered an issue in `SpyCall.__repr__` where a `)` was missing near the end of the string.
    a12455929d5fa328f8f0075c5eee014d9d587835
    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (44a5220)