[Checkins] [zopefoundation/ZConfig] e2906c: Py2/3: Unify handling of StringIO

GitHub noreply at github.com
Sat Feb 11 17:08:25 CET 2017


  Branch: refs/heads/coverage-100
  Home:   https://github.com/zopefoundation/ZConfig
  Commit: e2906ca4ff58414aeb5f5e4f65e16cf7e98e9a07
      https://github.com/zopefoundation/ZConfig/commit/e2906ca4ff58414aeb5f5e4f65e16cf7e98e9a07
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M ZConfig/__init__.py
    A ZConfig/_compat.py
    M ZConfig/components/logger/tests/test_logger.py
    M ZConfig/loader.py
    M ZConfig/schemaless.txt
    M ZConfig/tests/support.py
    M ZConfig/tests/test_cfgimports.py
    M ZConfig/tests/test_config.py
    M ZConfig/tests/test_loader.py

  Log Message:
  -----------
  Py2/3: Unify handling of StringIO

This helps with our coverage numbers.

Under Python 2, we also start using the C implementation, and avoid
some unnecessary encode/decode cycles, so we might be a tiny bit
faster.


  Commit: ab810f1a29e7a1031457d7d08447ce578c2ac34e
      https://github.com/zopefoundation/ZConfig/commit/ab810f1a29e7a1031457d7d08447ce578c2ac34e
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M ZConfig/tests/test_config.py

  Log Message:
  -----------
  100% coverage for __init__.py

The str values of the exceptions.


  Commit: 55a452328ea8f9c4cf4938d039ac039ce3654443
      https://github.com/zopefoundation/ZConfig/commit/55a452328ea8f9c4cf4938d039ac039ce3654443
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M ZConfig/cfgparser.py
    M ZConfig/tests/input/simplesections.xml
    M ZConfig/tests/test_config.py

  Log Message:
  -----------
  100% coverage for cfgparser.py

Also when it raises an error, preserve the traceback if we're
re-raising. This was invaluable in debugging this.


  Commit: b79486806f59c99c86b31b8ea8896427d7f4e3e5
      https://github.com/zopefoundation/ZConfig/commit/b79486806f59c99c86b31b8ea8896427d7f4e3e5
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M ZConfig/cmdline.py
    M ZConfig/tests/test_cmdline.py

  Log Message:
  -----------
  100% coverage for cmdline.py

Had to use one 'no cover' sadly.


  Commit: f26a69578ca4978ab7d3f9627b7562ba0a526173
      https://github.com/zopefoundation/ZConfig/commit/f26a69578ca4978ab7d3f9627b7562ba0a526173
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M CHANGES.rst
    M ZConfig/_compat.py
    M ZConfig/components/logger/factory.py
    M ZConfig/components/logger/handlers.py
    M ZConfig/info.py
    M ZConfig/loader.py
    M ZConfig/schemaless.py
    M ZConfig/tests/test_loader.py

  Log Message:
  -----------
  Use ABCMeta and @abstractmethod to prevent manually raising NotImplementedError. This helps coverage numbers.


  Commit: d4025b72d3b15cf988d35bdf905280d30a55dd29
      https://github.com/zopefoundation/ZConfig/commit/d4025b72d3b15cf988d35bdf905280d30a55dd29
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M .coveragerc
    M ZConfig/_compat.py
    M ZConfig/components/logger/tests/test_logger.py
    M ZConfig/datatypes.py
    M ZConfig/info.py
    M ZConfig/loader.py
    M ZConfig/schema.py
    M ZConfig/schemaless.py
    M ZConfig/tests/support.py
    M ZConfig/tests/test_datatypes.py
    M ZConfig/tests/test_loader.py
    M ZConfig/tests/test_schema.py
    M ZConfig/tests/test_schemaless.py
    M ZConfig/url.py

  Log Message:
  -----------
  Many small coverage fixes, mostly in tests.

Notable:

- float conversion now correctly handles bytes and unicode prohibited
  values on all versions.
- remove a duplicate test function from test_logger.
- remove test support in test_logger for < 2.7


Compare: https://github.com/zopefoundation/ZConfig/compare/e2906ca4ff58^...d4025b72d3b1


More information about the checkins mailing list