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

Method check

Lib/test/test_sys.py:1254–1258  ·  view source on GitHub ↗
(tracebacklimit, expected)

Source from the content-addressed store, hash-verified

1252 f2()
1253 """
1254 def check(tracebacklimit, expected):
1255 p = subprocess.Popen([sys.executable, '-c', code % tracebacklimit],
1256 stderr=subprocess.PIPE)
1257 out = p.communicate()[1]
1258 self.assertEqual(out.splitlines(), expected)
1259
1260 traceback = [
1261 b'Traceback (most recent call last):',

Callers

nothing calls this directly

Calls 3

communicateMethod · 0.95
assertEqualMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected