Skip to content

Commit

Permalink
Fixed an error when the first test is skipped, refs getsentry#10
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 authored Jun 25, 2020
1 parent 8a868e6 commit e895704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def pytest_runtest_teardown(item):
try:
responses_.stop()
responses_.reset()
except RuntimeError:
# patcher was already uninstalled and responses doesnt let us
except (AttributeError, RuntimeError):
# patcher was already uninstalled (or not installed at all) and responses doesnt let us
# force maintain it
pass

Expand Down

0 comments on commit e895704

Please sign in to comment.