[Checkins] [zopefoundation/martian] cff083: Fix test incompatibility with zope.interface 5.0

Michael Howitz noreply at github.com
Thu Apr 9 08:28:07 CEST 2020


  Branch: refs/heads/title_directive_fix
  Home:   https://github.com/zopefoundation/martian
  Commit: cff083e506c4ab47765d850cca20989bbbbb8cfc
      https://github.com/zopefoundation/martian/commit/cff083e506c4ab47765d850cca20989bbbbb8cfc
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M src/martian/testing.py

  Log Message:
  -----------
  Fix test incompatibility with zope.interface 5.0

Recent zope.interface versions made Interface.__module__ a readonly
attribute.  Without this fix, tests fail on Python 2.7 with

    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest directive.rst[105]>", line 1, in <module>
        class once_iface(FakeModule):
      File "/home/mg/src/zopefoundation/martian/src/martian/testing.py", line 65, in __init__
        fake_import(cls)
      File "/home/mg/src/zopefoundation/martian/src/martian/testing.py", line 33, in fake_import
        obj.__module__ = module.__name__
    TypeError: readonly attribute

(On Python 3 assignment to a readonly attribute raises an AttributeError
instead, which was already caught.)


  Commit: dca3df7ab30131b39a7e1412d2639eb7507675ec
      https://github.com/zopefoundation/martian/commit/dca3df7ab30131b39a7e1412d2639eb7507675ec
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Update changelog


  Commit: a9833ba332a98f56272b906d36ae0ee3fe4d2c51
      https://github.com/zopefoundation/martian/commit/a9833ba332a98f56272b906d36ae0ee3fe4d2c51
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M CHANGES.rst
    M src/martian/testing.py

  Log Message:
  -----------
  Merge pull request #18 from zopefoundation/fix-readonly-module-attribute

Fix test incompatibility with zope.interface 5.0


  Commit: b09c2cc72b37b496182d416eaad271f95416fabc
      https://github.com/zopefoundation/martian/commit/b09c2cc72b37b496182d416eaad271f95416fabc
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

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

  Log Message:
  -----------
  Drop Python 3.4

Also fix 'tox -p auto' not to coverage report too early


  Commit: 4a07b199938186573e22cd210802ef90056d133e
      https://github.com/zopefoundation/martian/commit/4a07b199938186573e22cd210802ef90056d133e
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

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

  Log Message:
  -----------
  Merge pull request #19 from zopefoundation/drop-py34

Drop Python 3.4 support


  Commit: e1ecc9eac4389ca573fa5b44d2cbb0a4520dd3b4
      https://github.com/zopefoundation/martian/commit/e1ecc9eac4389ca573fa5b44d2cbb0a4520dd3b4
  Author: Michael Howitz <mh at gocept.com>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M src/martian/testing.py
    M tox.ini

  Log Message:
  -----------
  Merge branch 'master' into title_directive_fix


Compare: https://github.com/zopefoundation/martian/compare/cde7db334bd4...e1ecc9eac438


More information about the checkins mailing list