Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fee0054
Fix array repr
youknowone Sep 25, 2021
2c8020a
clean up py* attributes names
youknowone Oct 2, 2021
2b0c16d
add `test_buffer.py` from cpython 3.8
Snowapril Oct 2, 2021
2b3b5fb
fix pystruct to use struct.error
Snowapril Oct 2, 2021
fa71ac9
add missing repr on mappingproxy
Snowapril Oct 2, 2021
40101b7
remove decorators on success tests
Snowapril Oct 2, 2021
c5cc179
remove decorators on success tests
Snowapril Oct 2, 2021
3863a9a
Added inverse sine and inverse cosine
rk3141 Oct 2, 2021
45f6c78
Remove comments to use cpython documentation instead
rk3141 Oct 2, 2021
0edb11a
Merge pull request #3195 from youknowone/py-names
DimitrisJim Oct 2, 2021
c991dff
Merge pull request #3197 from Snowapril/mapping_proxy_repr
DimitrisJim Oct 2, 2021
12d765f
Merge pull request #3196 from Snowapril/fix_pystruct
DimitrisJim Oct 2, 2021
001236e
pub(crate) for type modules
youknowone Sep 29, 2021
2f6deb8
Use PyInt::try_to_primitive.
DimitrisJim Oct 2, 2021
c2ea5e2
Add acos and asin in test_functions
rk3141 Oct 2, 2021
621e552
Add exception for asin and acos in tests
rk3141 Oct 2, 2021
e27b9ae
Merge pull request #3169 from youknowone/hide-type-modules
youknowone Oct 2, 2021
93c0753
Remove impl TryFromObject for SequenceIndex
youknowone Oct 2, 2021
da9c25a
Merge pull request #3201 from youknowone/remove-tryinto-sequence-index
youknowone Oct 2, 2021
e17d20c
Merge pull request #3187 from DimitrisJim/use_pyint_try_to_prim
youknowone Oct 2, 2021
b95edf6
Add test_compile from CPython 3.8
fanninpm Oct 2, 2021
5605884
Skip panicking test
fanninpm Oct 2, 2021
8bb1aab
Fix error message for named expression syntax errors
chrismoradi Oct 2, 2021
b7a79eb
Mark erroring/failing tests
fanninpm Oct 2, 2021
a702a17
Update unit tests instructions, explain how to run them individually
pheki Oct 2, 2021
66c0027
Fix grammar in DEVELOPMENT.md
pheki Oct 3, 2021
bb0a63e
Merge pull request #3207 from fanninpm/test-compile
DimitrisJim Oct 3, 2021
2ba1f26
Modify range in sre.rs
tony-jinwoo-ahn Oct 3, 2021
3ede484
Merge pull request #3205 from pheki/update-unit-testing-instructions
youknowone Oct 3, 2021
e8d8e07
Remove the formatting made by the auto-formatter
rk3141 Oct 3, 2021
c1679d8
Merge pull request #3206 from chrismoradi/fix-invalid-syntax-tests
DimitrisJim Oct 3, 2021
6bda88d
couritine hint comments
youknowone Oct 1, 2021
bda1a92
use PyIterReturn for coroutine internal
youknowone Oct 1, 2021
3277024
remove iterator::stop_iter_with_value
youknowone Oct 2, 2021
a8a3fa6
more useful vm.new_stop_iteration
youknowone Oct 2, 2021
d90a8cb
remote iterator::stop_iter_value
youknowone Oct 2, 2021
910d5e7
move iterator::length_hint to vm
youknowone Oct 2, 2021
31549f8
PyIterator holds PyIter
youknowone Oct 2, 2021
d1e9ac8
move funciton::PyIterator -> protocol::PyIterIter
youknowone Oct 2, 2021
d0615a4
PyIter::iter
youknowone Oct 3, 2021
0c56761
flexible PyIterIter and PyIter::into_iter
youknowone Oct 3, 2021
c039e10
iterator from PyIter
youknowone Oct 3, 2021
0576b2b
clean up vm::iterator::try_map
youknowone Oct 3, 2021
8f99f42
Merge pull request #3211 from tony-jinwoo-ahn/range
DimitrisJim Oct 4, 2021
5b07315
Defer conversion to Diagnostic as much as possible
youknowone Oct 4, 2021
7dd6891
clean up imports
youknowone Oct 4, 2021
c1e81bf
Merge pull request #3137 from youknowone/fix-array-repr
DimitrisJim Oct 4, 2021
8d52309
Merge pull request #3215 from youknowone/cleanup-derive
youknowone Oct 4, 2021
bbbdaf3
Merge pull request #3202 from youknowone/pyiter-more
youknowone Oct 4, 2021
c69fcfe
Added inverse sine and inverse cosine
rk3141 Oct 2, 2021
f8618ba
resolve merge conflicts
rk3141 Oct 4, 2021
38c8e03
resolve merge conflicts
rk3141 Oct 4, 2021
31f2c8b
Revert "resolve merge conflicts"
rk3141 Oct 4, 2021
03238de
Resolve issues
rk3141 Oct 4, 2021
38d681c
Revert "Added inverse sine and inverse cosine"
rk3141 Oct 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,34 @@ $ pytest -v
Rust unit tests can be run with `cargo`:

```shell
$ cargo test --all
$ cargo test --workspace --exclude rustpython_wasm
```

Python unit tests can be run by compiling RustPython and running the test module:

```shell
$ cargo run --release -- -m test
```

There are a few test options that are especially useful:

- `-j <n>` enables parallel testing (which is a lot faster), where `<n>` is the
number of threads to be used, ideally the same as number of cores on your CPU.
If you don't know, `-j 4` or `-j 8` are good options.
- `-v` enables verbose mode, adding additional information about the tests being
run.
- `<test_name>` specifies a single test to run instead of running all tests.

For example, to run all tests in parallel:

```shell
$ cargo run --release -- -m test -j 4
```

To run only `test_cmath` (located at `Lib/test/test_cmath`) verbosely:

```shell
$ cargo run --release -- -m test test_cmath -v
```

## Profiling
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_base64.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,6 @@ def test_b85_padding(self):
eq(base64.b85decode(b'czAet'), b"xxxx")
eq(base64.b85decode(b'czAetcmMzZ'), b"xxxxx\x00\x00\x00")

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_a85decode_errors(self):
illegal = (set(range(32)) | set(range(118, 256))) - set(b' \t\n\r\v')
for c in illegal:
Expand Down Expand Up @@ -644,8 +642,6 @@ def test_a85decode_errors(self):
self.assertRaises(ValueError, base64.a85decode, b's8W-', adobe=False)
self.assertRaises(ValueError, base64.a85decode, b's8W-"', adobe=False)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_b85decode_errors(self):
illegal = list(range(33)) + \
list(b'"\',./:[\\]') + \
Expand Down
Loading