[Pytest-commit] [pytest-dev/pytest] 22864b: Refactor recwarn to use warnings.catch_warnings in...

Bruno Oliveira nicoddemus at gmail.com
Wed Mar 15 11:27:33 EDT 2017


  Branch: refs/heads/features
  Home:   https://github.com/pytest-dev/pytest
  Commit: 22864b75ee080c8c600813b4f8985d2a70870dcb
      https://github.com/pytest-dev/pytest/commit/22864b75ee080c8c600813b4f8985d2a70870dcb
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2017-03-13 (Mon, 13 Mar 2017)

  Changed paths:
    M _pytest/recwarn.py
    M testing/test_recwarn.py

  Log Message:
  -----------
  Refactor recwarn to use warnings.catch_warnings instead of custom code

Since we dropped 2.5, we can now use warnings.catch_warnings to do the
"catch warnings" magic for us, simplifying the code a bit.


  Commit: 3c07072bfd3580bcd1b7334f77d2352cb8a9814d
      https://github.com/pytest-dev/pytest/commit/3c07072bfd3580bcd1b7334f77d2352cb8a9814d
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2017-03-13 (Mon, 13 Mar 2017)

  Changed paths:
    M testing/test_recwarn.py

  Log Message:
  -----------
  Fix test_recwarn in Python 3.6

No longer test for implementation details of recwarn since warnings.catch_warnings has changed
significantly in 3.6.


  Commit: 5482dfe0f3cf313e69c83cdd21f661a8c05a64ac
      https://github.com/pytest-dev/pytest/commit/5482dfe0f3cf313e69c83cdd21f661a8c05a64ac
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2017-03-15 (Wed, 15 Mar 2017)

  Changed paths:
    M _pytest/recwarn.py
    M testing/test_recwarn.py

  Log Message:
  -----------
  Merge pull request #2303 from nicoddemus/recwarn-refactor

Refactor recwarn to use warnings.catch_warnings instead of custom code


Compare: https://github.com/pytest-dev/pytest/compare/55b891ddd01d...5482dfe0f3cf


More information about the pytest-commit mailing list