Skip to content

Integrate logging_using_handler into catching_logs - #3012

Merged
nicoddemus merged 1 commit into
pytest-dev:masterfrom
twmr:merge_contextmanagers
Dec 13, 2017
Merged

nicoddemus merged 1 commit into
pytest-dev:masterfrom
twmr:merge_contextmanagers

Conversation

@twmr

@twmr twmr commented Dec 7, 2017

Copy link
Copy Markdown
Contributor

logging_using_handler is only used in catching_logs. Therefore it makes
sense to remove one of the many (nested) context managers from the logging
plugin.

Thanks for submitting a PR, your contribution is really appreciated!

Here's a quick checklist that should be present in PRs:

  • Add a new news fragment into the changelog folder
    • name it $issue_id.$type for example (588.bugfix)
    • 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

Unless your change is a trivial or a documentation fix (e.g., a typo or reword of a small section) please:

  • Add yourself to AUTHORS, in alphabetical order;

logging_using_handler is only used in catching_logs. Therefore it makes
sense to remove one of the many context managers from the logging
plugin.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 92.707% when pulling ba209b5 on thisch:merge_contextmanagers into 88f2cc9 on pytest-dev:master.

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Thisch!

@nicoddemus
nicoddemus merged commit 38f34e2 into pytest-dev:master Dec 13, 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.

3 participants