diff --git a/Lib/test/test_class_jy.py b/Lib/test/test_class_jy.py index 474c5ec..3fffd68 100644 --- a/Lib/test/test_class_jy.py +++ b/Lib/test/test_class_jy.py @@ -298,6 +298,18 @@ class ClassDefinesDunderModule(unittest.TestCase): class Bar(object): self.assertEqual(__module__, module_name) +class ClassMetaclassRepr(unittest.TestCase): + """aaaa""" + def test_repr_with_metaclass(self): + class FooMetaclass(type): + def __new__(cls, name, bases, attrs): + return super(FooMetaclass, cls).__new__(cls, name, bases, attrs) + + class Foo(object): + __metaclass__ = FooMetaclass + + self.assert_(repr(Foo).startswith("