MCPcopy Index your code
hub / github.com/python/cpython / test_iter_keys

Method test_iter_keys

Lib/test/test_descr.py:5421–5430  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5419 @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
5420 'trace function introduces __local__')
5421 def test_iter_keys(self):
5422 # Testing dict-proxy keys...
5423 it = self.C.__dict__.keys()
5424 self.assertNotIsInstance(it, list)
5425 keys = list(it)
5426 keys.sort()
5427 self.assertEqual(keys, ['__dict__', '__doc__', '__firstlineno__',
5428 '__module__',
5429 '__static_attributes__', '__weakref__',
5430 'meth'])
5431
5432 @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
5433 'trace function introduces __local__')

Callers

nothing calls this directly

Calls 5

listClass · 0.85
assertNotIsInstanceMethod · 0.80
keysMethod · 0.45
sortMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected