MCPcopy Create free account
hub / github.com/RustPython/RustPython / test_stdout_is_None

Method test_stdout_is_None

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

Source from the content-addressed store, hash-verified

167 "expected isreadable for %r" % (safe,))
168
169 def test_stdout_is_None(self):
170 with contextlib.redirect_stdout(None):
171 # smoke test - there is no output to check
172 value = 'this should not fail'
173 pprint.pprint(value)
174 pprint.PrettyPrinter().pprint(value)
175
176 def test_knotted(self):
177 # Verify .isrecursive() and .isreadable() w/ recursion

Callers

nothing calls this directly

Calls 1

pprintMethod · 0.45

Tested by

no test coverage detected