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

Method test_info

Lib/test/test_dis.py:2359–2363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2357 self.assertEqual(actual, "350")
2358
2359 def test_info(self):
2360 self.maxDiff = 1000
2361 for x, expected in CodeInfoTests.test_pairs:
2362 b = dis.Bytecode(x)
2363 self.assertRegex(b.info(), expected)
2364
2365 def test_disassembled(self):
2366 actual = dis.Bytecode(_f).dis()

Callers

nothing calls this directly

Calls 2

infoMethod · 0.95
assertRegexMethod · 0.80

Tested by

no test coverage detected