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

Method test_trace

Lib/test/test_site.py:394–400  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

392 self.assertEqual(rc, 0)
393
394 def test_trace(self):
395 message = "bla-bla-bla"
396 for verbose, out in (True, message + "\n"), (False, ""):
397 with mock.patch('sys.flags', mock.Mock(verbose=verbose)), \
398 mock.patch('sys.stderr', io.StringIO()):
399 site._trace(message)
400 self.assertEqual(sys.stderr.getvalue(), out)
401
402
403class PthFile(object):

Callers

nothing calls this directly

Calls 3

_traceMethod · 0.80
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected