mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
- Move assert_raises to testutils - Add optional message argument, with reasonable default - Reverse order of expr and exception type for readability - Lambda argument no longer takes parameter - Convert applicable snippets to use assert_raises
Test snippets
This directory contains two sets of test snippets which can be run in
Python. The snippets/ directory contains functional tests, and the
benchmarks/ directory contains snippets for use in benchmarking
RustPython's performance.
Running with CPython + RustPython
One way to run these snippets is by using CPython to do the parsing and compilation to bytecode. When this is done, run the bytecode with rustpython.
Running with RustPython
The other option is to run all snippets with RustPython.