mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
* Fix buffer protocol and memoryview * Fix io and array the right way to use buffer protocol * fix rebase * fix memoryview and introduce VecBuffer * fix deadlock * fix memoryview avoid double release buffer * impl ndim buffer support * first implement nd array for buffer and memoryview * fix slice adjust_indices * fix adjust_indices introduct SaturatedSliceIterator * fix memoryview cmp * fix adjust_indices positive_order * fix bug mark passed test * fix clippy * fix set_item_slice deadlock, optimize buffer * Delete @test_113974_tmp * Remove vec_buffer_type * rusty names * impl memoryview multi index * add comments Co-authored-by: Jeong YunWon <jeong@youknowone.org>
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.
Setup
Our testing depends on pytest, which you can either install globally using pip or locally using our pipenv.
Running
Simply run pytest in this directory, and the tests should run (and hopefully
pass). If it hangs for a long time, that's because it's building RustPython in
release mode, which should take less time than it would to run every test
snippet with RustPython compiled in debug mode.