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

Fix cleanup functions not being invoked on test failures #7151

Merged
merged 2 commits into from May 2, 2020

Commits on May 2, 2020

  1. Fix cleanup functions not being invoked on test failures

    Also delay calling tearDown() when --pdb is given, so users still have
    access to the instance variables (which are usually cleaned up during tearDown())
    when debugging.
    
    Fix pytest-dev#6947
    nicoddemus committed May 2, 2020
    Copy the full SHA
    5c2e96c View commit details
    Browse the repository at this point in the history
  2. Fix test_trial_error in test_unittest

    This reverts the test to the state before 04f27d4, which introduced the breaking
    change about addCleanup not being called properly for failed tests.
    nicoddemus committed May 2, 2020
    Copy the full SHA
    82f584b View commit details
    Browse the repository at this point in the history