Home | History | Annotate | Download | only in test

Lines Matching refs:namespace

154             def __new__(cls, name, bases, namespace):
156 self = super().__new__(cls, name, bases, namespace)
172 def __new__(cls, name, bases, namespace):
174 test_namespace = namespace
211 def __new__(cls, name, bases, namespace):
213 namespace_snapshot = namespace.copy()
214 return super().__new__(cls, name, bases, namespace)
216 # __classcell__ is injected into the class namespace by the compiler
241 # Some metaclasses may not pass the original namespace to type.__new__
244 def __new__(cls, name, bases, namespace):
245 namespace.pop('__classcell__', None)
246 return super().__new__(cls, name, bases, namespace)
284 def __new__(cls, name, bases, namespace, cell):
285 namespace['__classcell__'] = cell
286 return super().__new__(cls, name, bases, namespace)
298 def __new__(cls, name, bases, namespace):
299 cls = super().__new__(cls, name, bases, namespace)
300 B = type("B", (), namespace)