Home
last modified time | relevance | path

Searched refs:__qualname__ (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/python/Lib/test/
Dtest_funcattrs.py175 self.assertEqual(self.b.__qualname__, 'FuncAttrsTest.setUp.<locals>.b')
176 self.assertEqual(FuncAttrsTest.setUp.__qualname__, 'FuncAttrsTest.setUp')
177 self.assertEqual(global_function.__qualname__, 'global_function')
178 self.assertEqual(global_function().__qualname__,
180 self.assertEqual(global_function()().__qualname__,
182 self.assertEqual(global_function()()().__qualname__,
184 self.assertEqual(inner_global_function.__qualname__, 'inner_global_function')
185 …self.assertEqual(inner_global_function().__qualname__, 'inner_global_function.<locals>.inner_funct…
186 self.b.__qualname__ = 'c'
187 self.assertEqual(self.b.__qualname__, 'c')
[all …]
Dtest_datetime.py36 test_classes = sorted(set(test_classes), key=lambda cls: cls.__qualname__)
39 cls.__qualname__ += suffix
Dtest_generators.py120 self.assertEqual(gen.__qualname__,
125 gen.__qualname__ = "qualname"
127 self.assertEqual(gen.__qualname__, "qualname")
136 func.__qualname__ = "func_qualname"
140 self.assertEqual(gen.__qualname__, "func_qualname")
146 self.assertEqual(gen.__qualname__,
Dtest_enum.py618 __qualname__ = 'HexInt' variable in TestEnum.test_inherited_data_type.HexInt
622 __qualname__ = 'MyEnum' variable in TestEnum.test_inherited_data_type.MyEnum
633 __qualname__ = 'SillyInt' variable in TestEnum.test_inherited_data_type.SillyInt
636 __qualname__ = 'MyOtherEnum' variable in TestEnum.test_inherited_data_type.MyOtherEnum
647 __qualname__ = 'BrokenInt' variable in TestEnum.test_inherited_data_type.BrokenInt
651 __qualname__ = 'MyBrokenEnum' variable in TestEnum.test_inherited_data_type.MyBrokenEnum
818 self.assertEqual(Theory.__qualname__, 'spanish_inquisition')
827 self.NestedEnum.__qualname__ = '%s.NestedEnum' % self.__class__.__name__
1242 __qualname__ = 'NamedInt' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_getnewargs.NamedInt
1281 __qualname__ = 'NEI' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_getnewargs.NEI
[all …]
Dtest_builtin.py2197 self.assertEqual(A.__qualname__, 'A')
2210 self.assertEqual(C.__qualname__, 'C')
2235 self.assertEqual(A.__qualname__, name)
2249 self.assertEqual(C.__qualname__, 'C')
2266 self.assertEqual(A.__qualname__, 'B.C')
2270 self.assertEqual(A.__qualname__, 'B.C')
2272 A.__qualname__ = 'D.E'
2274 self.assertEqual(A.__qualname__, 'D.E')
2276 A.__qualname__ = b'B'
2277 self.assertEqual(A.__qualname__, 'D.E')
Dtest_descr.py1378 self.assertEqual(Q1.__qualname__, C1.__qualname__[:-2] + "Q1")
1383 q.__qualname__ = "q"
1384 self.assertEqual(q.__qualname__, "q")
1387 __qualname__ = object() variable in ClassPropertiesAndMethods.test_slots_special2.Q2
1586 '__qualname__': f.__qualname__}
4791 qualname = d.__objclass__.__qualname__ + '.' + d.__name__
4792 self.assertEqual(d.__qualname__, qualname)
4794 self.assertEqual(str.lower.__qualname__, 'str.lower')
4795 self.assertEqual(complex.real.__qualname__, 'complex.real')
4796 self.assertEqual(float.real.__qualname__, 'float.real')
[all …]
Dtest_functools.py636 self.assertEqual(wrapper.__qualname__, f.__qualname__)
657 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
675 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
730 self.assertEqual(wrapper.__qualname__, f.__qualname__)
749 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
769 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
Dtest_zipimport_support.py42 name = "%s.%s" % (obj.__module__, obj.__qualname__)
/third_party/python/Lib/asyncio/
Dcoroutines.py45 self.__qualname__ = getattr(gen, '__qualname__', None)
153 w.__qualname__ = getattr(func, '__qualname__', None)
206 if hasattr(coro, '__qualname__') and coro.__qualname__:
207 coro_name = coro.__qualname__
Dformat_helpers.py49 if hasattr(func, '__qualname__') and func.__qualname__:
50 func_repr = func.__qualname__
/third_party/python/Lib/test/support/
Dhashlib_helper.py30 setUpClass.__qualname__ = func_or_class.__qualname__ + '.setUpClass'
/third_party/python/Lib/
Denum.py407 type(obj).__qualname__, cls.__class__.__qualname__))
532 enum_class.__qualname__ = qualname
708 ve_exc = ValueError("%r is not a valid %s" % (value, cls.__qualname__))
861 raise ValueError("%r is not a valid %s" % (value, cls.__qualname__))
878 type(other).__qualname__, self.__class__.__qualname__))
943 raise ValueError("%r is not a valid %s" % (value, cls.__qualname__))
Dreprlib.py30 wrapper.__qualname__ = getattr(user_function, '__qualname__')
Ddatetime.py573 self.__class__.__qualname__,
909 self.__class__.__qualname__,
1407 self.__class__.__qualname__,
1933 self.__class__.__qualname__,
2240 self.__class__.__qualname__,
2243 self.__class__.__qualname__,
Dtypes.py218 self.__qualname__ = getattr(gen, '__qualname__', None)
Dinspect.py657 for name in func.__qualname__.split('.')[:-1]:
693 self.__qualname__ + '.' + name == obj.__qualname__):
964 qualname = object.__qualname__
1364 return annotation.__qualname__
1365 return annotation.__module__+'.'+annotation.__qualname__
/third_party/python/Doc/c-api/
Dfunction.rst39 set to ``NULL``. *__qualname__* is set to the same value as the function's name.
45 ``__qualname__`` attribute. *qualname* should be a unicode object or ``NULL``;
46 if ``NULL``, the ``__qualname__`` attribute is set to the same value as its
Dcoro.rst33 with ``__name__`` and ``__qualname__`` set to *name* and *qualname*.
Dgen.rst44 with ``__name__`` and ``__qualname__`` set to *name* and *qualname*.
/third_party/python/Lib/unittest/test/
Dtest_setups.py114 'setUpClass (%s.%s)' % (__name__, BrokenTest.__qualname__))
147 'tearDownClass (%s.%s)' % (__name__, Test.__qualname__))
418 'setUpClass (%s.%s)' % (__name__, Test.__qualname__))
/third_party/python/Lib/distutils/
Dextension.py137 self.__class__.__qualname__,
/third_party/python/Lib/test/test_importlib/
Dtest_util.py204 self.assertEqual(wrapped.__qualname__, fxn.__qualname__)
309 self.assertEqual(wrapped.__qualname__, fxn.__qualname__)
/third_party/python/Lib/unittest/
Dutil.py55 return "%s.%s" % (cls.__module__, cls.__qualname__)
/third_party/python/Doc/library/
Demail.contentmanager.rst60 typ.__qualname__``).
61 * the type's qualname (``typ.__qualname__``)
/third_party/python/Lib/email/
Dcontentmanager.py44 qname = typ.__qualname__

1234