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

Method test_output

Lib/test/test_logging.py:1913–1922  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1911 self.handled.release()
1912
1913 def test_output(self):
1914 # The log message sent to the SocketHandler is properly received.
1915 if self.server_exception:
1916 self.skipTest(self.server_exception)
1917 logger = logging.getLogger("tcp")
1918 logger.error("spam")
1919 self.handled.acquire()
1920 logger.debug("eggs")
1921 self.handled.acquire()
1922 self.assertEqual(self.log_output, "spam\neggs\n")
1923
1924 def test_noserver(self):
1925 if self.server_exception:

Callers

nothing calls this directly

Calls 6

skipTestMethod · 0.80
getLoggerMethod · 0.80
errorMethod · 0.45
acquireMethod · 0.45
debugMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected