Fix tests for PyPy3.

On PyPy3 the following `registered_classes` for `IMutableMapping` are
found:

```
{<class 'dict'>,
 <class 'pkg_resources._vendor.pyparsing.ParseResults'>,
 <class 'setuptools._vendor.pyparsing.ParseResults'>,
 <class 'collections.UserDict'>}
```

So collecting the tests fails because of a duplicate name which is
prevented by this commit.
pull/259/head
Michael Howitz 6 months ago
parent 5f8e2e0410
commit 239dd56589
  1. 3
      src/zope/interface/common/tests/__init__.py

@ -60,7 +60,8 @@ def add_verify_tests(cls, iface_classes_iter):
self.assertTrue(self.verify(iface, stdlib_class))
suffix = "%s_%s_%s" % (
suffix = "%s_%s_%s_%s" % (
stdlib_class.__module__.replace('.', '_'),
stdlib_class.__name__,
iface.__module__.replace('.', '_'),
iface.__name__

Loading…
Cancel
Save