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

Fixed issue shadowing error when missing argument on teardown_method #1605

Merged
merged 1 commit into from
Jun 12, 2016

Commits on Jun 12, 2016

  1. Fixed issue shadowing error when missing argument on teardown_method

    When the method argument is missing on teardown_method, the traceback is
    100% internal to pytest, which with default options get pruned. Then
    that traceback is empty, leading to a new exception as a traceback shall
    not be empty.
    
    This PR fixes that issue by pushing back the last stack on the
    traceback, when the stacktrace is empty after pruning. Then the output
    is still pruned, but gives meaningful information with the item where it
    failed on the stack.
    
    * fixes issue pytest-dev#1604
    
    Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
    guyzmo committed Jun 12, 2016
    Configuration menu
    Copy the full SHA
    accd962 View commit details
    Browse the repository at this point in the history