Skip to content

Commit

Permalink
Merge pull request #18 from zopefoundation/fix-readonly-module-attribute
Browse files Browse the repository at this point in the history
Fix test incompatibility with zope.interface 5.0
  • Loading branch information
mgedmin committed Apr 7, 2020
2 parents d3d7d5e + dca3df7 commit a9833ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,7 @@ CHANGES
1.5 (unreleased)
================

- Nothing changed yet.
- Fix test suite incompatibility with zope.interface >= 5.0.


1.4 (2020-02-23)
Expand Down
2 changes: 1 addition & 1 deletion src/martian/testing.py
Expand Up @@ -31,7 +31,7 @@ def fake_import(fake_module):
if __module__ is None or __module__ in {'__builtin__', 'builtins'}:
try:
obj.__module__ = module.__name__
except AttributeError:
except (AttributeError, TypeError):
pass
setattr(module, name, obj)

Expand Down

0 comments on commit a9833ba

Please sign in to comment.