From a8cc720fed9220b95e1874569a76cbde50b4c8d8 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Mon, 28 Mar 2022 08:52:00 +0200 Subject: [PATCH] Fix tests for PyPy3. On PyPy3 the following `registered_classes` for `IMutableMapping` are found: ``` {, , , } ``` So collecting the tests fails because of a duplicate name which is prevented by this commit. --- src/zope/interface/common/tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zope/interface/common/tests/__init__.py b/src/zope/interface/common/tests/__init__.py index b3bd5bea..20230729 100644 --- a/src/zope/interface/common/tests/__init__.py +++ b/src/zope/interface/common/tests/__init__.py @@ -60,7 +60,8 @@ def test(self, stdlib_class=stdlib_class, iface=iface): 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__