MCPcopy Create free account
hub / github.com/ezyang/ghstack / test_stderr

Method test_stderr

test_shell.py:70–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 )
69
70 def test_stderr(self) -> None:
71 with self.assertLogs(level=logging.DEBUG) as cm:
72 self.emit(err(r"arf\n"))
73 self.assertExpectedInline(
74 self.flog(cm),
75 """\
76$ python emitter.py e 'arf\\n'
77# stderr:
78arf
79""",
80 )
81
82 def test_stdout_passthru(self) -> None:
83 with self.assertLogs(level=logging.DEBUG) as cm:

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
flogMethod · 0.95
errClass · 0.85

Tested by

no test coverage detected