Dean Li
66bb59016d
generalize IOErrorWithFilename to use PathOrFd
2021-09-29 22:16:45 +08:00
Dean Li
3af3b1f0d9
OSError with filename and filename2
...
Implement OSError members `filename` and `filename2` by adding a new
struct `IOErrorWithFilename` will implement `IntoPyException`.
This PR will *NOT* pass more CPython test(*) but will allow user to
access `attr:filename` in OSError exception which IMO is a important
feacture.
2021-09-28 20:08:57 +08:00
Dean Li
0c7246054e
os: fix execv argument type
2021-09-26 00:39:04 +08:00
Jeong YunWon
c2b4755af4
CPython docs database for module items
2021-09-22 04:25:41 +09:00
Codemonk-adi
a07d3432c1
Redid the commit cause I messed up
2021-09-21 21:58:51 +05:30
Jeong YunWon
e6e2204bde
Merge pull request #3083 from moreal/impl-genericalias
...
Introduce `types.GenericAlias` type
2021-09-21 01:32:51 +09:00
Jeong YunWon
46dc7f487b
Merge pull request #3088 from deantvv/os-stat-result
...
os: fix stat_result test
2021-09-19 23:42:31 +09:00
Dean Li
96dcd68472
os: fix stat_result test
...
Implement tp_new for `stat_result`
To unpack args, this PR implement a `flatten_args` closure to
unpack args like
```
args = (1, 2, 3, 4, 5)
args = ((1, 2, 3, 4, 5))
args = (((1, 2, 3, 4, 5))) # from pickle load
```
2021-09-19 10:07:53 +08:00
Moreal
7c3939a149
Mark failed tests by features not implemented yet
2021-09-19 03:36:24 +09:00
Moreal
2462d167d1
Bump types module to CPython 3.9.7
2021-09-19 03:36:24 +09:00
Tony Jinwoo Ahn
9de8511367
Add tan() and tanh() for cmath
...
Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com >
2021-09-18 19:42:09 +09:00
Park Jiin
cc739b4ccf
Implement cmath.acosh
2021-09-18 14:50:55 +09:00
Jeong YunWon
b12300e912
Merge pull request #3023 from Snowapril/syslog-module
...
Implement `syslog` module for unix
2021-09-18 13:18:15 +09:00
snowapril
358bf1e562
add expected failure on fail test
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-18 01:42:46 +09:00
snowapril
c6a261085d
add test_syslog.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-18 01:42:46 +09:00
Connor Troy
14c9744050
Update test_cmath for log and log10 additions
2021-09-16 16:54:58 -06:00
Jim Fasarakis-Hilliard
e34198fc00
Remove HEAPTYPE flag from builtins.
2021-09-17 03:30:21 +09:00
Kangzhi Shi
52b7f3a5f7
unmark successful test
2021-09-16 15:29:26 +02:00
Steve Shi
c064118e6b
Impl array.fromfile ( #3065 )
2021-09-16 03:18:13 +09:00
Nikita Sobolev
b723bbfbb5
All exceptions are now modified with extend_exception! macro
2021-09-16 03:17:19 +09:00
Jeong YunWon
00a86ba65a
Merge pull request #3029 from youknowone/pybuffer
...
Refactor PyBuffer
2021-09-15 15:11:19 +09:00
Jim Fasarakis-Hilliard
1a39cbc752
Merge pull request #3059 from eldpswp99/add-super-test
...
Add test_super from CPython 3.8
2021-09-14 22:03:46 +03:00
Aaditya
97f9390308
Implemented sin and cos ( #3056 )
...
Implemented sin and cos
2021-09-14 22:01:33 +03:00
eldpswp99
cd9b4946fe
add TODO:RUSTPYTHON
2021-09-15 02:12:48 +09:00
eldpswp99
72be296c1d
add super test by CPython 3.8
2021-09-15 02:06:23 +09:00
Padraic Fanning
360e0dd8a3
Unmark passing tests in test_uu
2021-09-14 23:59:58 +09:00
jfh
632f73b79a
Allow sqrt to run some tests.
2021-09-14 04:40:54 +09:00
Jeong YunWon
f2ecab46ef
unmark successful tests
2021-09-14 02:22:41 +09:00
Jeong YunWon
dcc8043edd
Merge pull request #3037 from owljoa/fix-math-remainder-test
...
Fix failed test remainder in test_math
2021-09-12 00:12:12 +09:00
Jeong YunWon
e8736b6135
Merge pull request #3031 from DimitrisJim/cmath_impl
...
Add cmath module.
2021-09-11 21:36:00 +09:00
jfh
41f628a32a
Skip failing tests.
2021-09-11 14:22:59 +03:00
Dongin Kim
1406f80c3c
fix failed test remainder in test_math
...
add conditions for below rules
1. remainder(x, inf) is x, for non-NaN non-infinite x
2. According to IEEE 754-2008 7.2(f)
2-1. remainder(x, 0) for non-NaN x is invalid operation
2-2. remainder(infinity, x) for non-NaN x is invalid operation
2021-09-11 20:00:29 +09:00
Padraic Fanning
8cab41f2a7
Unmark passing tests in test_base64
2021-09-10 19:00:27 -04:00
Padraic Fanning
a92d3e9281
Skip panicking test in test_base64
2021-09-10 18:58:58 -04:00
Padraic Fanning
165ea9415f
Unmark passing test(s) in test_binascii
2021-09-10 18:58:00 -04:00
jfh
ec7386e1ff
Add test_cmath from CPython 3.8.
2021-09-10 22:49:19 +03:00
Lee Dogeon
0d2a4264b3
Correct object.__repr__
2021-09-11 00:38:34 +09:00
Lee Dogeon
63b1696458
Derive name from tp_name
2021-09-09 00:07:36 +09:00
snowapril
d121020552
add test_dummy_threading.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
4be5c34e29
add annotations for making test work
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
c8dd8162a1
add test_dummy_thread.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
98f2f871cd
add annotations for making test success
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
4016eb95af
add test_dictviews.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
ff98ea33a0
add annotations for making test success
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
6c30d02a72
add test_decimal.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
f67e618415
add annotations for make test success
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
2c3460244a
add dataclasses.py & test_dataclasses.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
2b994f98c5
add annotations for making test success
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
99b7b59986
add test_contextlib.py from cpython 3.8
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00
snowapril
e4566007cd
add annotations for making test success
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-09-06 18:55:23 +09:00