[Checkins] [zopefoundation/zope.component] 8f8a64: Fix tests on Python 2

Colin Watson noreply at github.com
Tue Nov 12 09:16:34 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.component
  Commit: 8f8a6450d48e0b67b3c6d3a37fae83fe518f6b3c
      https://github.com/zopefoundation/zope.component/commit/8f8a6450d48e0b67b3c6d3a37fae83fe518f6b3c
  Author: Colin Watson <cjwatson at debian.org>
  Date:   2019-11-11 (Mon, 11 Nov 2019)

  Changed paths:
    M CHANGES.rst
    M docs/api/persistent.rst

  Log Message:
  -----------
  Fix tests on Python 2

ZODB 5.5.0 added an "import mock" to ZODB.tests.util (or "from unittest
import mock" on Python 3, which is in the standard library).  ZODB[test]
included the new dependency, but zope.component wasn't using that for
tests.

However, ZODB.tests.util.DB was just an import of
ZODB.MappingStorage.DB, so we can just as easily use the latter and
avoid the extra dependency.


  Commit: a2235163d5d776362105eab000a9d574526761c3
      https://github.com/zopefoundation/zope.component/commit/a2235163d5d776362105eab000a9d574526761c3
  Author: Colin Watson <cjwatson at ubuntu.com>
  Date:   2019-11-12 (Tue, 12 Nov 2019)

  Changed paths:
    M CHANGES.rst
    M docs/api/persistent.rst

  Log Message:
  -----------
  Merge pull request #43 from cjwatson/fix-py2-tests

Fix tests on Python 2


Compare: https://github.com/zopefoundation/zope.component/compare/fba4ae428d48...a2235163d5d7


More information about the checkins mailing list