MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_output

Method get_output

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

Source from the content-addressed store, hash-verified

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