[Checkins] [zopefoundation/zope.contenttype] 292dc0: Fix tests on Python 3.8

Colin Watson noreply at github.com
Thu Dec 19 12:45:29 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.contenttype
  Commit: 292dc07c0d7ea832c075f7f8e44074c1e21de127
      https://github.com/zopefoundation/zope.contenttype/commit/292dc07c0d7ea832c075f7f8e44074c1e21de127
  Author: Colin Watson <cjwatson at debian.org>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M CHANGES.rst
    M src/zope/contenttype/tests/testContentTypes.py

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

Marius Gedminas worked out that the fix for
https://bugs.python.org/issue4963 in Python 3.8 (also backported to 3.7)
meant that `mimetypes.init` now modifies `mimetypes.types_map` in place.
Work around this by remembering the length of `types_map` at the start
of each test.

Fixes #7.


  Commit: 50a093ccdcfda8061eb66647af59ec9b14d644ea
      https://github.com/zopefoundation/zope.contenttype/commit/50a093ccdcfda8061eb66647af59ec9b14d644ea
  Author: Colin Watson <cjwatson at debian.org>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Drop dist: xenial and sudo: true

Neither is necessary any more.


  Commit: 11231bb32b2dd602d99e75b4af8889d4b55ed996
      https://github.com/zopefoundation/zope.contenttype/commit/11231bb32b2dd602d99e75b4af8889d4b55ed996
  Author: Colin Watson <cjwatson at debian.org>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M tox.ini

  Log Message:
  -----------
  Add support for Python 3.8


  Commit: 60f2474cbe0c2e4624afc5b9a2a4ca387edb7bdc
      https://github.com/zopefoundation/zope.contenttype/commit/60f2474cbe0c2e4624afc5b9a2a4ca387edb7bdc
  Author: Colin Watson <cjwatson at debian.org>
  Date:   2019-12-19 (Thu, 19 Dec 2019)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M src/zope/contenttype/tests/testContentTypes.py
    M tox.ini

  Log Message:
  -----------
  Merge pull request #8 from cjwatson/py38

Add support for Python 3.8


Compare: https://github.com/zopefoundation/zope.contenttype/compare/1ff5d03b90cf...60f2474cbe0c


More information about the checkins mailing list