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

Method test_stdout_is_None

Lib/test/test_pprint.py:186–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

184 "expected isreadable for %r" % (safe,))
185
186 def test_stdout_is_None(self):
187 with contextlib.redirect_stdout(None):
188 # smoke test - there is no output to check
189 value = 'this should not fail'
190 pprint.pprint(value)
191 pprint.PrettyPrinter().pprint(value)
192
193 def test_knotted(self):
194 # Verify .isrecursive() and .isreadable() w/ recursion

Callers

nothing calls this directly

Calls 1

pprintMethod · 0.45

Tested by

no test coverage detected