Commit Graph

9920 Commits

Author SHA1 Message Date
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
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
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
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
Jim Fasarakis-Hilliard
7d1f75dd2f Merge pull request #3351 from Snowapril/fix-generic-alias
Add missing methods on `GenericAlias`
2021-10-22 16:32:18 +03:00
Jeong YunWon
17c59a3e2d Merge pull request #3359 from DimitrisJim/export_reusage_symbols
Export RUSAGE_* symbols, add test_resource
2021-10-22 21:15:09 +09:00
snowapril
d9f561caa2 add rich_compare on GenericAlias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
92b81e5dd8 update some test in test_typing from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
48d6ba154f add decorators on failed tests
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
8607519441 add missing methods for GenericAlias
* __mro_entries__
* __instancecheck__
* __reduce__
* __subclasscheck__
* Callable slot

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
dfc0cdfaf7 add exact type check and return generic alias
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
b2eff4ae53 add missing __class_getitem__ from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
32ba09c407 add missing __class_getitem__ in several types
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
f491bb8fc4 commented out on missing module in rustpython
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
snowapril
4a3dab0b41 add test_genericalias.py from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-22 18:43:15 +09:00
jfh
2299878395 Mark failing resourse tests. 2021-10-22 10:33:18 +03:00
jfh
9ab71fee02 Add test_resource from Python 3.8 2021-10-22 10:29:30 +03:00
jfh
a8b00ef2b1 Export RUSAGE_* symbols. 2021-10-22 10:17:28 +03:00
Jeong YunWon
6138cb4476 Merge pull request #3357 from coolreader18/edition2021
Migrate to 2021 edition
2021-10-22 08:21:45 +09:00
Noa
a09b44031b Merge pull request #3356 from DimitrisJim/fake_builtin_gc
Remove Python gc stub, add rust stub.
2021-10-21 17:12:47 -05:00
Noa
53c261a19b Switch to array.into_iter() 2021-10-21 17:12:37 -05:00
Noa
09e9ea91e7 TryFrom, TryInto, FromIterator are in prelude now 2021-10-21 17:04:19 -05:00
Noa
33b5827c4d Disable redoxer action temporarily 2021-10-21 17:04:07 -05:00
Jeong YunWon
815e1b6648 Merge pull request #3355 from moreal/use-pymodule-attribute-wasm-window
Remove usage of `py_module!` from `_window`
2021-10-22 05:35:10 +09:00
Jeong YunWon
b394c0a8db Merge pull request #3354 from moreal/use-pymodule-attribute-wasm-js
Remove usage of `py_module!` from _js
2021-10-22 05:34:33 +09:00
Jeong YunWon
bd83930421 Merge pull request #3353 from moreal/use-pymodule-attribute-wasm-browser
Remove usage of `py_module!` from _browser
2021-10-22 05:33:29 +09:00
Noa
80688abfcc Fix new clippy lint 2021-10-21 11:59:44 -05:00
jfh
103195b277 Remove Python gc stub, add rust stub. 2021-10-21 19:56:20 +03:00
Noa
ee8b11f5d2 Migrate to 2021 edition 2021-10-21 11:46:24 -05:00
Moreal
5a16ab8d20 Remove usage of py_module! from _window 2021-10-21 22:05:39 +09:00
Moreal
1474c9e8b3 Remove usage of py_module! from _browser 2021-10-21 21:53:18 +09:00
Moreal
3f9c7901ee Remove usage of py_module! from _js 2021-10-21 21:48:26 +09:00
Jeong YunWon
dc4d269fbb Merge pull request #3307 from youknowone/pyptr
PyObjectPtr: no RC even through function pointers
2021-10-21 18:36:52 +09:00
Jeong YunWon
f76877347a Py -> PyObjectView 2021-10-21 18:04:13 +09:00