Home
last modified time | relevance | path

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

123

/external/python/cpython3/Lib/test/
Dtest_funcattrs.py134 self.assertEqual(self.b.__qualname__, 'FuncAttrsTest.setUp.<locals>.b')
135 self.assertEqual(FuncAttrsTest.setUp.__qualname__, 'FuncAttrsTest.setUp')
136 self.assertEqual(global_function.__qualname__, 'global_function')
137 self.assertEqual(global_function().__qualname__,
139 self.assertEqual(global_function()().__qualname__,
141 self.assertEqual(global_function()()().__qualname__,
143 self.assertEqual(inner_global_function.__qualname__, 'inner_global_function')
144 …self.assertEqual(inner_global_function().__qualname__, 'inner_global_function.<locals>.inner_funct…
145 self.b.__qualname__ = 'c'
146 self.assertEqual(self.b.__qualname__, 'c')
[all …]
Dtest_datetime.py35 test_classes = sorted(set(test_classes), key=lambda cls: cls.__qualname__)
38 cls.__qualname__ += suffix
Dtest_generators.py121 self.assertEqual(gen.__qualname__,
126 gen.__qualname__ = "qualname"
128 self.assertEqual(gen.__qualname__, "qualname")
137 func.__qualname__ = "func_qualname"
141 self.assertEqual(gen.__qualname__, "func_qualname")
147 self.assertEqual(gen.__qualname__,
Dtest_builtin.py1825 self.assertEqual(A.__qualname__, 'A')
1838 self.assertEqual(C.__qualname__, 'C')
1863 self.assertEqual(A.__qualname__, name)
1877 self.assertEqual(C.__qualname__, 'C')
1894 self.assertEqual(A.__qualname__, 'B.C')
1898 self.assertEqual(A.__qualname__, 'B.C')
1900 A.__qualname__ = 'D.E'
1902 self.assertEqual(A.__qualname__, 'D.E')
1904 A.__qualname__ = b'B'
1905 self.assertEqual(A.__qualname__, 'D.E')
Dtest_curses.py92 with self.subTest(meth=meth.__qualname__, args=args):
104 with self.subTest(meth=meth.__qualname__):
235 with self.subTest(func=func.__qualname__):
Dtest_functools.py611 self.assertEqual(wrapper.__qualname__, f.__qualname__)
632 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
650 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
705 self.assertEqual(wrapper.__qualname__, f.__qualname__)
724 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
744 self.assertNotEqual(wrapper.__qualname__, f.__qualname__)
Dtest_enum.py652 self.assertEqual(Theory.__qualname__, 'spanish_inquisition')
661 self.NestedEnum.__qualname__ = '%s.NestedEnum' % self.__class__.__name__
1072 __qualname__ = 'NamedInt' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_getnewargs.NamedInt
1111 __qualname__ = 'NEI' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_getnewargs.NEI
1129 __qualname__ = 'NamedInt' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_getnewargs_ex.NamedInt
1168 __qualname__ = 'NEI' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_getnewargs_ex.NEI
1186 __qualname__ = 'NamedInt' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_reduce.NamedInt
1225 __qualname__ = 'NEI' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_reduce.NEI
1243 __qualname__ = 'NamedInt' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_reduce_ex.NamedInt
1282 __qualname__ = 'NEI' # needed for pickle protocol 4 variable in TestEnum.test_subclasses_with_reduce_ex.NEI
[all …]
Dtest_descr.py1353 self.assertEqual(Q1.__qualname__, C1.__qualname__[:-2] + "Q1")
1358 q.__qualname__ = "q"
1359 self.assertEqual(q.__qualname__, "q")
1362 __qualname__ = object() variable in ClassPropertiesAndMethods.test_slots_special2.Q2
4596 qualname = d.__objclass__.__qualname__ + '.' + d.__name__
4597 self.assertEqual(d.__qualname__, qualname)
4599 self.assertEqual(str.lower.__qualname__, 'str.lower')
4600 self.assertEqual(complex.real.__qualname__, 'complex.real')
4601 self.assertEqual(float.real.__qualname__, 'float.real')
4602 self.assertEqual(int.__add__.__qualname__, 'int.__add__')
[all …]
Dtest_asyncgen.py310 self.assertIn('.gen', g.__qualname__)
311 g.__qualname__ = '123'
312 self.assertEqual(g.__qualname__, '123')
Dtest_zipimport_support.py41 name = "%s.%s" % (obj.__module__, obj.__qualname__)
/external/python/cpython3/Lib/asyncio/
Dcoroutines.py44 self.__qualname__ = getattr(gen, '__qualname__', None)
149 w.__qualname__ = getattr(func, '__qualname__', None)
202 if hasattr(coro, '__qualname__') and coro.__qualname__:
203 coro_name = coro.__qualname__
Dformat_helpers.py49 if hasattr(func, '__qualname__') and func.__qualname__:
50 func_repr = func.__qualname__
/external/python/cpython3/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.rst32 with ``__name__`` and ``__qualname__`` set to *name* and *qualname*.
Dgen.rst42 with ``__name__`` and ``__qualname__`` set to *name* and *qualname*.
/external/python/cpython3/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__))
/external/tensorflow/tensorflow/python/util/
Ddecorator_utils.py27 return function.__qualname__
/external/python/cpython3/Lib/
D_dummy_thread.py147 self.__class__.__qualname__,
Dreprlib.py30 wrapper.__qualname__ = getattr(user_function, '__qualname__')
Ddatetime.py585 self.__class__.__qualname__,
887 self.__class__.__qualname__,
1355 self.__class__.__qualname__,
1885 self.__class__.__qualname__,
2191 self.__class__.__qualname__,
2194 self.__class__.__qualname__,
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py203 self.assertEqual(wrapped.__qualname__, fxn.__qualname__)
308 self.assertEqual(wrapped.__qualname__, fxn.__qualname__)
/external/python/cpython3/Lib/distutils/
Dextension.py136 self.__class__.__qualname__,
/external/python/cpython3/Lib/unittest/
Dutil.py55 return "%s.%s" % (cls.__module__, cls.__qualname__)
/external/python/cpython3/Objects/
Dmethodobject.c150 _Py_IDENTIFIER(__qualname__); in meth_get__qualname__()
/external/python/cpython3/Doc/library/
Demail.contentmanager.rst60 typ.__qualname__``).
61 * the type's qualname (``typ.__qualname__``)

123