summaryrefslogtreecommitdiff
path: root/src/zope/interface/tests/test_declarations.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/interface/tests/test_declarations.py')
-rw-r--r--src/zope/interface/tests/test_declarations.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/zope/interface/tests/test_declarations.py b/src/zope/interface/tests/test_declarations.py
index 9ef192a..a52274a 100644
--- a/src/zope/interface/tests/test_declarations.py
+++ b/src/zope/interface/tests/test_declarations.py
@@ -1305,13 +1305,18 @@ class ProvidesClassTests(unittest.TestCase):
self.assertRaises(AttributeError, _test)
def test__repr__(self):
- inst = self._makeOne(type(self))
+ from zope.interface.interface import InterfaceClass
+ IFoo = InterfaceClass("IFoo")
+
+ inst = self._makeOne(type(self), IFoo)
self.assertEqual(
repr(inst),
- "<zope.interface.Provides for %r>" % type(self)
+ "<zope.interface.Provides for instances of %r providing %s>" % (
+ type(self),
+ (IFoo,)
+ )
)
-
class Test_Provides(unittest.TestCase):
def _callFUT(self, *args, **kw):