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

Method run

Lib/test/test_warnings/__init__.py:1258–1265  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

1256 """))
1257
1258 def run(*args):
1259 res = assert_python_ok(*args, PYTHONIOENCODING='utf-8')
1260 stderr = res.err.decode('utf-8', 'replace')
1261 stderr = '\n'.join(stderr.splitlines())
1262
1263 # normalize newlines
1264 stderr = re.sub('<.*>', '<...>', stderr)
1265 return stderr
1266
1267 # tracemalloc disabled
1268 filename = os.path.abspath(os_helper.TESTFN)

Callers 2

test_async_contextMethod · 0.45

Calls 5

assert_python_okFunction · 0.90
decodeMethod · 0.45
joinMethod · 0.45
splitlinesMethod · 0.45
subMethod · 0.45

Tested by 2

test_async_contextMethod · 0.36