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

Function run_via_rustpython

extra_tests/test_snippets.py:56–61  ·  view source on GitHub ↗
(filename, test_type)

Source from the content-addressed store, hash-verified

54
55
56def run_via_rustpython(filename, test_type):
57 env = os.environ.copy()
58 env["RUST_LOG"] = "info,cargo=error,jobserver=error"
59 env["RUST_BACKTRACE"] = "1"
60
61 subprocess.check_call([RUSTPYTHON_BINARY, filename], env=env)
62
63
64def create_test_function(cls, filename, method, test_type):

Callers 1

perform_testFunction · 0.85

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected