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

Method testAssertNoLogsPerLogger

Lib/test/test_unittest/test_case.py:1960–1964  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1958 )
1959
1960 def testAssertNoLogsPerLogger(self):
1961 with self.assertNoStderr():
1962 with self.assertLogs(log_quux):
1963 with self.assertNoLogs(logger=log_foo):
1964 log_quux.error("1")
1965
1966 def testAssertNoLogsFailurePerLogger(self):
1967 # Failure due to unexpected logs for the given logger or its

Callers

nothing calls this directly

Calls 4

assertNoStderrMethod · 0.95
assertLogsMethod · 0.80
assertNoLogsMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected