Commit Graph

1541 Commits

Author SHA1 Message Date
Aphek
1ff85118fc Fix test_chr by raising a ValueError on chr(-1) instead of OverflowError 2021-10-05 12:40:20 -03:00
Jim Fasarakis-Hilliard
c1679d8074 Merge pull request #3206 from chrismoradi/fix-invalid-syntax-tests
Fix error message for named expression syntax errors
2021-10-03 18:31:33 +03:00
Padraic Fanning
b7a79eb002 Mark erroring/failing tests 2021-10-02 18:34:23 -04:00
Chris Moradi
8bb1aabf2e Fix error message for named expression syntax errors 2021-10-02 13:43:50 -07:00
Padraic Fanning
56058844fe Skip panicking test 2021-10-02 16:16:00 -04:00
Padraic Fanning
b95edf676f Add test_compile from CPython 3.8 2021-10-02 16:14:42 -04:00
Jim Fasarakis-Hilliard
12d765fce3 Merge pull request #3196 from Snowapril/fix_pystruct
Fix pystruct incompatibility and add `test_buffer.py` from cpython 3.8
2021-10-02 17:27:21 +03:00
snowapril
c5cc179182 remove decorators on success tests
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-02 20:36:43 +09:00
snowapril
40101b726c remove decorators on success tests
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-02 20:33:47 +09:00
snowapril
2b0c16d209 add test_buffer.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-02 19:07:01 +09:00
Jeong YunWon
13a052b9ca Merge pull request #3094 from qingshi163/bytes-iter-pickle
General logic for positional iterator
2021-10-02 15:37:50 +09:00
Tony Jinwoo Ahn
8d3461d1bb Enable exp() for cmath test 2021-10-02 13:59:36 +09:00
Padraic Fanning
c3221a0d7b Unmark passing tests 2021-10-01 19:39:57 -04:00
Noa
b38ce3dbd3 Merge pull request #3158 from RustPython/pip-warnings
Miscellaneous pip fixes
2021-10-01 13:34:52 -05:00
Eric Hagman
e3e4071a00 fix: remove custom tests from cmath 2021-10-01 10:52:34 -04:00
Kangzhi Shi
4e6c451b2a Impl pickling for bytes and bytearray 2021-10-01 16:49:27 +02:00
Eric Hagman
787f6c1be6 Merge remote-tracking branch 'upstream/main' into cmath-sinh-cosh 2021-10-01 10:00:09 -04:00
Eric Hagman
55be9547d7 feat: add sinh and cosh to cmath 2021-10-01 09:52:39 -04:00
Jeong YunWon
7d859f54b9 unmark resolved test 2021-10-01 22:32:44 +09:00
snowapril
4014b91780 add decorators on failed & error tests
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
snowapril
1253fe0952 add tset__osx_support.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
snowapril
2432c784c3 add test_cmd_line_script.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
snowapril
c2f11e593d add test_codeccallbacks.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
snowapril
5317f88118 add test_binhex.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
snowapril
4872e35210 add test_trace.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
snowapril
957bae668b add test_zipapp.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-10-01 14:10:58 +09:00
Noa
65fa12a55a Fix test failures 2021-09-30 18:33:51 -05:00
lijm1358
438661dc44 Add atanh and atan to cmath 2021-10-01 01:19:43 +09:00
LeeBeomsu
59b707c2ac add asinh function to cmath
Signed-off-by: LeeBeomsu <dlqjatn2@gmail.com>
2021-09-30 21:46:25 +09:00
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