Commit Graph

8656 Commits

Author SHA1 Message Date
James Webber
e003f255d5 implement hashable and unhashable for collections.deque 2021-08-08 20:59:39 -04:00
Jim Fasarakis-Hilliard
9652c79f1d Merge pull request #2787 from fanninpm/test-yield-from
Add test_yield_from from CPython 3.8
2021-08-08 21:15:28 +03:00
Padraic Fanning
373aff3d69 Mark failing tests due to GitHub Actions 2021-08-08 13:23:37 -04:00
Jeong YunWon
9ac81a7781 Merge pull request #2808 from sobolevn/issue-2790
Adds `class` field to `PyGetSet` to fix `__qualname__`
2021-08-09 01:40:49 +09:00
sobolevn
e939346850 Adds class field to PyGetSet to fix __qualname__ and (in future) repr, refs #2790 2021-08-08 18:53:57 +03:00
Snowapril
89ca1db86d builtins: add __index__ overriding class support
This commit fix RangeTestCase.test_range test in test_index.py

TryFromObject implementation for RangeIndex enum did not cover classes
that override __index__ operator which cpython implementation is currently providing
(https://docs.python.org/3.8/library/operator.html#operator.__index__)

I add codes that cover upper case using vm.to_index method.

Signed-off-by: snowapril <sinjihng@gmail.com>
2021-08-08 21:27:05 +09:00
voidSatisfaction
3cd1f6b27c Add math.comb function 2021-08-08 20:04:23 +09:00
Jim Fasarakis-Hilliard
530dec5426 Merge pull request #2806 from sobolevn/issue-2762
Makes args of `type.__prepare__` optional
2021-08-08 13:33:45 +03:00
sobolevn
e5e20a53b2 Makes type.__prepare__ a classmethod, also first arg is any (not str), refs #2762 2021-08-08 12:49:41 +03:00
sobolevn
af63e83e13 Makes args of type.__prepare__ optional, refs #2762 2021-08-08 12:05:31 +03:00
Jeong YunWon
43a43f76f2 Merge pull request #2803 from moreal/bugfix/rethrow-error-in-build-map
Fix incorrect unwrapping
2021-08-07 23:47:06 +09:00
Jim Fasarakis-Hilliard
bf59103d19 Merge pull request #2802 from eldpswp99/iskeyword-none-check
add iskeyword None check
2021-08-07 15:43:02 +03:00
Lee Dogeon
653858e152 Fix unhashable type error message (#2801)
* Fix unhashable type error message
2021-08-07 14:37:01 +03:00
eldpswp99
1c0bd83809 iskeyword: add None check
there was one todo in test_keyword.py

before: s was PyStrRef, it failed to handle None
after: convert s to PyObjectRef and add None check
2021-08-07 20:24:41 +09:00
moreal
cc7269c68d Fix incorrect unwrapping
See https://github.com/RustPython/RustPython/issues/2799
2021-08-07 19:24:25 +09:00
Jim Fasarakis-Hilliard
53b8067acd Merge pull request #2798 from deantvv/impl-socket-herror
socket: impl herror
2021-08-07 12:50:44 +03:00
Dean Li
06b40b3602 socket: impl herror
There is one todo that is waiting for hstrerror to land in libc crate.
For now it shows the same error as cpython when hstrerror is not
available.
2021-08-07 15:26:09 +08:00
Jeong YunWon
2d78812745 Merge pull request #2797 from fanninpm/test-zipfile
Add test_zipfile from CPython 3.8
2021-08-06 23:21:48 +09:00
Padraic Fanning
d99d255ee1 Mark erroring/failing/hanging tests 2021-08-05 23:32:02 -04:00
Padraic Fanning
12e8f59862 Add test_zipfile from CPython 3.8
Also adds the following supporting files:
 - the entire ziptestdata/ directory
 - zip_cp437_header.zip
 - zipdir.zip
2021-08-05 18:08:38 -04:00
Jeong YunWon
7fc8ddb130 Merge pull request #2795 from DimitrisJim/rangeiter_reduce
Adds reduce, length_hint and set_state to range iterators.
2021-08-06 06:44:32 +09:00
jfh
f3a074ba90 Adds reduce, length_hint and set_state to range iterators. 2021-08-05 23:56:01 +03:00
Jeong YunWon
412fffbc5d Merge pull request #2792 from DimitrisJim/init_bltins
Initialize with init for mutable builtins.
2021-08-05 03:59:19 +09:00
jfh
6950ad6ee4 Initialize with init for mutable builtins. 2021-08-04 20:57:47 +03:00
Jeong YunWon
62af4222ba Merge pull request #2739 from fanninpm/test-xmlrpc
Add test_xmlrpc from CPython 3.8
2021-08-04 14:00:28 +09:00
Nikita Sobolev
8f2679a97a Adds __qualname__ to PyBuiltinFunction 2021-08-04 13:59:40 +09:00
Noah
fa8072cfd6 Merge pull request #2785 from sobolevn/github-actions-housekeeping
GitHub Actions housekeeping
2021-08-03 08:42:27 -05:00
Padraic Fanning
1cd25cdb41 Mark failing tests due to GitHub Actions sandbox 2021-08-02 20:23:33 -04:00
Padraic Fanning
60e36a08d5 Mark erroring/failing tests 2021-08-02 19:24:44 -04:00
Padraic Fanning
f6aeb8bf09 Add test_yield_from from CPython 3.8 2021-08-02 19:24:43 -04:00
Jim Fasarakis-Hilliard
8f397947fe Merge pull request #2784 from jungsu-kwon/test-deque
added test_deque.py from CPython 3.8.7
2021-08-02 17:20:13 +03:00
sobolevn
fbd79ba917 GitHub Actions housekeeping 2021-08-02 15:37:34 +03:00
jungsu.kwon
d44c98e926 skipped tests with error 2021-08-02 20:29:16 +09:00
jungsu.kwon
c3c8148d68 added expectedFailure for failing tests 2021-08-02 20:17:43 +09:00
jungsu.kwon
4142fd630d skipped hanging/panicking tests 2021-08-02 20:11:06 +09:00
jungsu.kwon
89d349be7a added test_deque.py from CPython 3.8.7 2021-08-02 20:06:28 +09:00
Nikita Sobolev
8009697498 Adds correct __repr__ to PyBuiltinMethod 2021-08-02 19:07:16 +09:00
Jeong YunWon
1d4214fab8 Merge pull request #2738 from fanninpm/test-xml-etree
Add test_xml_etree from CPython 3.8
2021-08-02 16:23:18 +09:00
Jeong YunWon
8d1757381a Merge pull request #2773 from DimitrisJim/math_tests
Add additional files for math tests and fix commented tests in tests_math.
2021-08-02 04:06:52 +09:00
Jeong YunWon
dca79874dd Merge pull request #2772 from RustPython/redox-fixes
Fix redox and other stuff
2021-08-02 04:05:14 +09:00
Jeong YunWon
9a69fb5952 Merge pull request #2774 from sobolevn/fixes-clippy
Fixes clippy on macos
2021-08-02 03:59:38 +09:00
Noah
8f2b9f3195 Fix socket2::Socket niche optimization breaking stuff 2021-08-01 10:53:08 -05:00
sobolevn
9c6dbf2c23 Fixes clippy on macos 2021-08-01 12:08:14 +03:00
jfh
53e8f5c17d Uncomment tests, mark the failing/need to skip. 2021-08-01 04:21:42 +03:00
jfh
0c81452bf3 Add additional math tests from CPython 3.8 2021-08-01 04:21:06 +03:00
Jeong YunWon
7ab81569ea Merge pull request #2708 from DimitrisJim/operator_rs
Add operator.rs
2021-08-01 09:24:41 +09:00
Nikita Sobolev
73ae7a6116 Adds __qualname__ to PyBuiltinMethod 2021-08-01 09:16:27 +09:00
Noah
a32ee555cf Run cargo update 2021-07-31 18:44:40 -05:00
Padraic Fanning
84a5fdb292 Update xml.etree.ElementPath to CPython 3.8 2021-07-31 18:28:28 -04:00
Padraic Fanning
05fff92c1b Update xml.etree.ElementTree to CPython 3.8 2021-07-31 18:28:28 -04:00