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

Method test_qualname_source

Lib/test/test_inspect/test_inspect.py:6516–6523  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6514 @unittest.skipIf(ThreadPoolExecutor is None,
6515 'threads required to test __qualname__ for source files')
6516 def test_qualname_source(self):
6517 rc, out, err = assert_python_ok('-m', 'inspect',
6518 'concurrent.futures:ThreadPoolExecutor')
6519 lines = out.decode().splitlines()
6520 # ignore the final newline
6521 self.assertEqual(lines[:-1],
6522 inspect.getsource(ThreadPoolExecutor).splitlines())
6523 self.assertEqual(err, b'')
6524
6525 def test_builtins(self):
6526 _, out, err = assert_python_failure('-m', 'inspect',

Callers

nothing calls this directly

Calls 4

assert_python_okFunction · 0.90
splitlinesMethod · 0.45
decodeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected