[Checkins] [zopefoundation/zope.interface] 1f00dc: 100% coverage (#90)

GitHub noreply at github.com
Mon Jun 12 16:05:24 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 1f00dcfa8e7f4cc2e5706c9af44f1cab20b22d88
      https://github.com/zopefoundation/zope.interface/commit/1f00dcfa8e7f4cc2e5706c9af44f1cab20b22d88
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2017-06-12 (Mon, 12 Jun 2017)

  Changed paths:
    M .coveragerc
    M src/zope/interface/adapter.py
    M src/zope/interface/advice.py
    M src/zope/interface/declarations.py
    M src/zope/interface/interface.py
    M src/zope/interface/tests/advisory_testing.py
    M src/zope/interface/tests/dummy.py
    M src/zope/interface/tests/odd.py
    M src/zope/interface/tests/test_adapter.py
    M src/zope/interface/tests/test_advice.py
    M src/zope/interface/tests/test_declarations.py
    M src/zope/interface/tests/test_interface.py
    M src/zope/interface/tests/test_registry.py
    M src/zope/interface/tests/test_verify.py
    M src/zope/interface/verify.py
    M tox.ini

  Log Message:
  -----------
  100% coverage (#90)

* Get as close to 100% coverage as possible.

Without conflicting with #86.

This is almost entirely trivial changes:

- Make dummy methods that should never be called either raise
  NotImplementedError or call self.fail() in tests.
- Standardize the no-coverage pragma
- Add a few pragmas where coverage varies across
  versions/implementations, mostly for the sake of tox (travis should
  hit them all).

* Convert tox to run the coverage command, like travis. A follow up should have it produce coverage for all python versions/implementations.

Fixes #87

* Adjust coverage config for py2 only tests; fix typo; finish replacing self with cls




More information about the checkins mailing list