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

Handle exceptions in subrequest finalizers #2496

Merged
merged 2 commits into from
Jun 14, 2017
Merged

Handle exceptions in subrequest finalizers #2496

merged 2 commits into from
Jun 14, 2017

Conversation

rmfitzpatrick
Copy link

@rmfitzpatrick rmfitzpatrick commented Jun 13, 2017

Should resolve #2440 by following a similar procedure as SetupState._callfinalizers().

  • Add a new news fragment into the changelog folder
    • name it $issue_id.$type for example (588.bug)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of removal, feature, bugfix, vendor, doc or trivial
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."
  • Target: for bugfix, vendor, doc or trivial fixes, target master; for removals or features target features;
  • Make sure to include reasonable tests for your change if necessary

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 92.133% when pulling 5a856b6 on rmfitzpatrick:pytest2440_handle_subrequest_finalizer_exceptions into f0541b6 on pytest-dev:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 92.133% when pulling 5a856b6 on rmfitzpatrick:pytest2440_handle_subrequest_finalizer_exceptions into f0541b6 on pytest-dev:master.

@nicoddemus
Copy link
Member

nicoddemus commented Jun 13, 2017

Awesome @rmfitzpatrick, thanks.

I've updated the test to ensure the exception is being re-raised. I will merge as soon as CI passes again. 👍

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 92.133% when pulling dd316eb on rmfitzpatrick:pytest2440_handle_subrequest_finalizer_exceptions into f0541b6 on pytest-dev:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 92.134% when pulling 4e4ebbe on rmfitzpatrick:pytest2440_handle_subrequest_finalizer_exceptions into 0908f40 on pytest-dev:master.

@nicoddemus nicoddemus merged commit 336cf3e into pytest-dev:master Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception in SubRequest finalizer prevents further registered SubRequest finalizer calls
4 participants