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

Method get_output

Lib/test/test_utf8_mode.py:29–37  ·  view source on GitHub ↗
(self, *args, failure=False, **kw)

Source from the content-addressed store, hash-verified

27 return (loc in POSIX_LOCALES)
28
29 def get_output(self, *args, failure=False, **kw):
30 kw = dict(self.DEFAULT_ENV, **kw)
31 if failure:
32 out = assert_python_failure(*args, **kw)
33 out = out[2]
34 else:
35 out = assert_python_ok(*args, **kw)
36 out = out[1]
37 return out.decode().rstrip("\n\r")
38
39 @unittest.skipIf(MS_WINDOWS, 'Windows has no POSIX locale')
40 def test_posix_locale(self):

Callers 10

test_posix_localeMethod · 0.95
test_xoptionMethod · 0.95
test_env_varMethod · 0.95
test_stdioMethod · 0.95
test_ioMethod · 0.95
_check_io_encodingMethod · 0.95
checkMethod · 0.95
test_optim_levelMethod · 0.95

Calls 4

assert_python_failureFunction · 0.90
assert_python_okFunction · 0.90
rstripMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected