MCPcopy Create free account
hub / github.com/python/cpython / assertNoStderr

Method assertNoStderr

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

Source from the content-addressed store, hash-verified

1816
1817 @contextlib.contextmanager
1818 def assertNoStderr(self):
1819 with captured_stderr() as buf:
1820 yield
1821 self.assertEqual(buf.getvalue(), "")
1822
1823 def assertLogRecords(self, records, matches):
1824 self.assertEqual(len(records), len(matches))

Calls 3

captured_stderrFunction · 0.90
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected