Commit Graph
9950 Commits
Author SHA1 Message Date
Daniel Watkins 1ea93a59d5 stdlib/io.rs: align negative-fd-from-opener exception with CPython 2021-10-28 15:05:55 -04:00
Jeong YunWon 35e56efa65 Merge pull request #3366 from zetwhite/dict_richcmp
Implements Comparable for PyDictKeys, PyDictItems
2021-10-28 00:41:14 +09:00
Jeong YunWon f9bb87ee84 ViewSetOps::cmp 2021-10-27 23:51:11 +09:00
Jeong YunWon 281e2ee4db Merge pull request #3378 from chrismoradi/update-collections-and-tests-from-cpython
Update collections from CPython, fix tests for UserDict/List/String
2021-10-27 02:35:06 +09:00
Jeong YunWon 0f5d86c972 Merge pull request #3380 from youknowone/fix-resultlike
Fix result-like build
2021-10-27 01:14:18 +09:00
Jeong YunWon 7ad7465827 Use PyIterReturn result-like tools 2021-10-27 00:14:59 +09:00
Jeong YunWon 2dea5f2039 use ResultLike for PyIterReturn 2021-10-26 23:10:10 +09:00
Chris Moradi 6abfc3a00c Revert UserDict.__init__ changes, new passing test of UserList 2021-10-25 22:41:59 -07:00
Jeong YunWon c414da1c94 Merge pull request #3374 from Snowapril/ga_mapping_protocol
Implement `mapping` trait for `GenericAlias`
2021-10-26 13:56:50 +09:00
Chris Moradi ec247e0d4f Update collections from CPython, fix tests for UserDict/List/String
Clean implementation of changes in PR #3371 based on feedback.

Copies from [CPython tag `v3.9.7` and adds back custom RustPython changes where needed for:
- `Lib/collections/__init__.py`
- `Lib/test/test_collections.py`

Closes: #3371
2021-10-25 21:19:44 -07:00
snowapril 795bfeb75d Add extra test for GenericAlias on TypeVar args
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-26 10:15:10 +09:00
snowapril bda42ac73c fix miswork on TypeVar arguments
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-26 10:15:10 +09:00
snowapril 33de69a4dc Implement mapping protocol for GenericAlias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-26 10:15:10 +09:00
Jeong YunWon c502037a8b Merge pull request #3363 from deantvv/os-env-anyos
os: fix test_putenv for all os
2021-10-26 01:54:39 +09:00
Jeong YunWon b433594b65 Merge pull request #3375 from DimitrisJim/time_clock_consts
Add CLOCK_* constants.
2021-10-25 20:57:20 +09:00
Dean Li 6ec380369a os: fix test_putenv for all os 2021-10-25 19:40:32 +08:00
jfh ddeacbf0ce Add CLOCK_ constants. 2021-10-25 13:40:44 +03:00
Jeong YunWon e628c74866 Merge pull request #3372 from Overflow0xFFFF/bugfix/3260-enable-all-ci-tests
CI: Run all Rust unit tests
2021-10-25 18:33:05 +09:00
Jeong YunWon dc8c9dea0d Merge pull request #3373 from Tetramad/math
add 'math domain error' at some functions in math module
2021-10-25 17:57:46 +09:00
Tetramad ebd0352cfc Fix math.log10 to pass some failed tests
Now math.log10 with less than or equal to zero should raise ValueError
with "math domain error" message if `x` fit in f64
2021-10-25 14:44:13 +09:00
Tetramad 2bedba0e12 Fix math.log2 to pass some failed tests
Now math.log2 with less than or equal to zero should raise ValueError
with "math domain error" message if `x` fit in f64
2021-10-25 14:44:13 +09:00
Tetramad c88c69a993 Fix math.log1p to pass some failed tests
Now math.log1p with less than or equal to negative one should raise
ValueError with "math domain error" message
2021-10-25 14:44:13 +09:00
Tetramad 3d8f6cf08d Fix math.log to pass some failed tests
Now math.log with less than or equal to zero should raise ValueError
with "math domain error" message if `x` fit in f64
2021-10-25 14:44:08 +09:00
Noa 9ea2aa7956 Merge pull request #3365 from fanninpm/fix-cron-ci-jobs
Fix `cron-ci.yaml` actions
2021-10-25 00:37:32 -05:00
Tetramad ba3cafc932 Fix math.atanh to pass failed tests
Now math.atanh with out of domain value should raise ValueError with
"math domain error" message
2021-10-25 10:45:11 +09:00
Joshua Ford 22ffe07a12 CI: Run all Rust unit tests
Update the CI workflow so that all unit tests are executed.
These tests are run in the same manner as defined in the developer docs.

Closes #3260.
2021-10-24 17:53:29 -05:00
Padraic Fanning 0390f0efb5 Fix linking error in act 2021-10-24 16:32:33 -04:00
Jeong YunWon 5f6c342c4a Merge pull request #3367 from DimitrisJim/length_hint_opt
vm.length_hint into vm.length_hint_opt
2021-10-24 23:36:49 +09:00
Jeong YunWon b0795e89f7 Merge pull request #3370 from deantvv/test-posix-reason
test: posix update failure reason
2021-10-24 19:53:38 +09:00
Jim Fasarakis-Hilliard 690ac7060b Merge pull request #3369 from deantvv/posix-rtld-constants
posix: add rtld constants
2021-10-24 13:53:06 +03:00
Jeong YunWon 1c966f13ba Merge pull request #3368 from DimitrisJim/clippy_stuff
Fix some uncaught clippy warnings.
2021-10-24 19:52:56 +09:00
Dean Li 46c38c09d2 test: posix update failure reason 2021-10-24 18:05:19 +08:00
Dean Li 91256a4ec6 posix: add rtld constants 2021-10-24 17:53:49 +08:00
jfh 611e755599 Fix some uncaught clippy warnings. 2021-10-24 12:23:02 +03:00
jfh 4123e5eabc vm.length_hint into vm.length_hint_opt 2021-10-24 12:08:21 +03:00
zetwhite a401d8c190 make work dictview compare test 2021-10-24 16:54:33 +09:00
Padraic Fanning a50b91bb0e Make benchmark work with act, and fix import
This doesn't remedy a certain benchmark's possible memory consumption.
2021-10-24 01:47:12 -04:00
zetwhite a3fed90fc2 Implements Comparable for PyDictKeys, PyDictItems 2021-10-24 12:26:46 +09:00
Padraic Fanning c1282293f8 Fix whatsleft action and make it work with act 2021-10-23 21:21:07 -04:00
Padraic Fanning e6559c6a6f Fix testdata action and make it work with act 2021-10-23 21:02:56 -04:00
Padraic Fanning ba68f5cfcc Fix codecov action and make it work with act 2021-10-23 19:56:44 -04:00
Jeong YunWon 7f0ba0c176 Merge pull request #3364 from moreal/relocate-object-repr
Relocate `vm.to_repr` to `object.repr`
2021-10-24 01:14:56 +09:00
ChJR e139364a60 Relocate vm.issubclass to obj.is_subclass 2021-10-24 01:05:32 +09:00
Moreal bc05b98ca6 Relocate vm.to_repr to object.repr 2021-10-23 21:16:28 +09:00
Jeong YunWon 5dbf753200 Merge pull request #3362 from fanninpm/fix-custom-text-test-runner
Delete `partial` causing custom runner failure
2021-10-23 16:14:08 +09:00
Padraic Fanning 9fdd76c1dd Delete partial causing custom runner failure 2021-10-22 18:16:47 -04:00
Jeong YunWon 9ece24fbce Merge pull request #3361 from youknowone/result-like
Update result-like to 0.4
2021-10-23 05:56:48 +09:00
Jeong YunWon 1047cb573d Update result-like to 0.4 2021-10-23 02:49:59 +09:00
Jim Fasarakis-Hilliard 54d5966895 Merge pull request #3360 from moreal/remove-py-module-macro
Remove `py_module!` macro
2021-10-22 17:12:05 +03:00
Moreal 72a1dee5ad Remove py_module! macro 2021-10-22 22:45:38 +09:00