[Checkins] [zopefoundation/zope.testrunner] 75e97b: Automatically enable the default warnings

GitHub noreply at github.com
Fri Nov 10 16:06:53 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.testrunner
  Commit: 75e97bb06ca42c700b4dfd22e3fa8c2b16148182
      https://github.com/zopefoundation/zope.testrunner/commit/75e97bb06ca42c700b4dfd22e3fa8c2b16148182
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-11-10 (Fri, 10 Nov 2017)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M src/zope/testrunner/__init__.py
    M src/zope/testrunner/runner.py
    M src/zope/testrunner/tests/test_runner.py
    M src/zope/testrunner/tests/testrunner-subprocess-errors.txt

  Log Message:
  -----------
  Automatically enable the default warnings

Fixes #54

The handling of the arguments and warnings is directly lifted from
``unittest``.

I introduced a new method, run_tests_with_warnings, that calls the
pre-existing run_tests. In the (unlikely?) event of subclasses that
override run_tests, this will ensure that they get the warnings by
default. It will also allow subclasses to change warning behaviour
without changing test behaviour.

This started producing a bunch of ResourceWarnings under Python 3 for
unclosed files and un-waited-for child process, and that broke a
doctest, so I fixed that in spawn_layer_in_subprocess.


  Commit: 94cb22267a6a6949d30ebca9be4abaddea1e901f
      https://github.com/zopefoundation/zope.testrunner/commit/94cb22267a6a6949d30ebca9be4abaddea1e901f
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-11-10 (Fri, 10 Nov 2017)

  Changed paths:
    M appveyor.yml
    M setup.py
    M src/zope/testrunner/tests/test_runner.py

  Log Message:
  -----------
  Explicit test for DeprecationWarning using logging. Try to fix appveyor for 3.5+ as suggested.


  Commit: 030f26f7a3a15d5d1d984f33e58e37db45d8a399
      https://github.com/zopefoundation/zope.testrunner/commit/030f26f7a3a15d5d1d984f33e58e37db45d8a399
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2017-11-10 (Fri, 10 Nov 2017)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M appveyor.yml
    M setup.py
    M src/zope/testrunner/__init__.py
    M src/zope/testrunner/runner.py
    M src/zope/testrunner/tests/test_runner.py
    M src/zope/testrunner/tests/testrunner-subprocess-errors.txt

  Log Message:
  -----------
  Merge pull request #55 from zopefoundation/issue54

Automatically enable the default warnings


Compare: https://github.com/zopefoundation/zope.testrunner/compare/88ffed38aa62...030f26f7a3a1


More information about the checkins mailing list