MCPcopy Create free account
hub / github.com/EasyIME/PIME / run_python

Method run_python

python/python3/tornado/test/ioloop_test.py:777–783  ·  view source on GitHub ↗
(self, *statements)

Source from the content-addressed store, hash-verified

775
776class TestIOLoopConfiguration(unittest.TestCase):
777 def run_python(self, *statements):
778 stmt_list = [
779 "from tornado.ioloop import IOLoop",
780 "classname = lambda x: x.__class__.__name__",
781 ] + list(statements)
782 args = [sys.executable, "-c", "; ".join(stmt_list)]
783 return native_str(subprocess.check_output(args)).strip()
784
785 def test_default(self):
786 # When asyncio is available, it is used by default.

Callers 3

test_defaultMethod · 0.95
test_asyncioMethod · 0.95
test_asyncio_mainMethod · 0.95

Calls 2

listFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected