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.
This commit is contained in:
Michael Howitz 2022-03-28 08:52:00 +02:00
parent 5f8e2e0410
commit 239dd56589
1 changed files with 2 additions and 1 deletions

View File

@ -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__