Padraic Fanning
67f3d40717
Add test_codecs from CPython 3.8
2021-09-04 18:24:29 -04:00
Padraic Fanning
1613733668
Update codecs.py to CPython 3.8
2021-09-04 18:24:25 -04:00
Jeong YunWon
8bc9b7630a
Merge pull request #3007 from DimitrisJim/length_hint_during_extract
...
Call `__length_hint__` before extracting elements
2021-09-05 04:25:09 +09:00
Tony Jinwoo Ahn
6e1c9c68b6
Fix range of "invalid start byte" for UTF-8
...
Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com >
2021-09-04 21:09:52 +09:00
jfh
022eb28c09
Call __length_hint__ on object to be extracted.
2021-09-04 15:04:32 +03:00
Padraic Fanning
8083eed146
Skip panicking test
2021-09-03 20:25:06 -04:00
Jeong YunWon
61e79ff064
Merge pull request #2997 from zetwhite/os_sched
...
os : implement os.sched_yield, os.sched_get_priority_min, os.sched_get_priority_max
2021-09-02 22:21:07 +09:00
Jeong YunWon
7359f9dda0
skip test_sched_priority for now
2021-09-02 20:20:11 +09:00
Moreal
cda1924cf8
Unmark fixed tests
2021-09-02 19:55:01 +09:00
Jim Fasarakis-Hilliard
8473ea9911
Merge pull request #2991 from DimitrisJim/set_iter
...
Improve set iteration, add __reduce__
2021-09-01 12:03:46 +03:00
Moreal
06318a3bb7
Unmark fixed tests
2021-08-31 23:53:05 +09:00
jfh
049e9bd41d
Add __reduce__ for set iterator.
2021-08-30 19:53:48 +03:00
Frank King
c1aaac02ed
Implement array::_array_reconstructor
2021-08-30 22:21:53 +08:00
Jeong YunWon
4ddd1d3ee3
Merge pull request #2989 from DimitrisJim/repeat_overflow_checks
...
Check for MemoryErrors when repeating sequences.
2021-08-30 16:12:37 +09:00
Jeong YunWon
f4d40bc0c9
Merge pull request #2988 from DimitrisJim/isinstance_subclass_edges
...
Clean up edge cases in `isinstance`/`issubclass`.
2021-08-30 12:05:51 +09:00
jfh
97b8d7ca7b
Add checking for repeat on sequences.
2021-08-29 17:43:47 +03:00
Myunghoon Park
e4953efac1
add __new__ method to deque iterator and reverse iterator ( #2987 )
...
* add __new__ method to deque iterator and reverse iterator
2021-08-29 17:13:19 +03:00
jfh
d42d048c70
Clean up edge cases in isinstance and issubclass.
2021-08-29 15:12:30 +03:00
Jim Fasarakis-Hilliard
e44cb9c5cf
Merge pull request #2982 from fanninpm/fix-typing
...
Add test_typing from CPython 3.8
2021-08-28 21:10:36 +03:00
Padraic Fanning
a43979bb62
Skip stack overflow on Windows
2021-08-28 12:48:13 -04:00
Padraic Fanning
71a4934bc1
Unmark passing test in test_grammar
2021-08-28 12:03:33 -04:00
Padraic Fanning
b8df8c3a6c
Mark erroring/failing tests
2021-08-27 22:54:31 -04:00
Padraic Fanning
80a0effd22
Reenable SupportsAbs and SupportsRound
2021-08-27 21:41:50 -04:00
Padraic Fanning
cd9078e5f4
Add support files for test_typing
2021-08-27 21:41:49 -04:00
Padraic Fanning
73d18fd7de
Add test_typing from CPython 3.8
2021-08-27 21:41:49 -04:00
jfh
2b5251a4ec
Return subclass on copy.
2021-08-27 20:47:41 +03:00
Lee Dogeon
abdfe3222b
Fix __repr__, __qualname__ ( #2977 )
2021-08-27 17:07:10 +03:00
snowapril
e208138d62
skip test_infinite_recursion_in_bases test in win32
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-08-27 21:04:33 +09:00
snowapril
535f0734a0
remove expected_failure annotation
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-08-27 19:28:01 +09:00
Jeong YunWon
3a861e47c6
Merge pull request #2976 from DimitrisJim/bump_recursion_limit
...
Bump recursion limit to match CPython's
2021-08-27 16:44:58 +09:00
jfh
01e5b12290
Bump recursion limit to match CPython's
2021-08-27 09:29:52 +03:00
Jeong YunWon
f1c3935f27
Merge pull request #2961 from qingshi163/main
...
fix pattern for construct the bytes and bytearray
2021-08-27 10:02:02 +09:00
Jeong YunWon
fbea3f072e
Merge pull request #2952 from Snowapril/fix-isinstance
...
Fix `isinstance` to support Generic type object
2021-08-27 02:16:53 +09:00
Jim Fasarakis-Hilliard
48f0eb2810
Merge pull request #2972 from DimitrisJim/deque_pickle_tests
...
Implement __reduce__ for deque.
2021-08-26 20:03:41 +03:00
Jeong YunWon
23b77b94d5
Merge pull request #2971 from DimitrisJim/rlcompleter
...
Add rlcompleter.py
2021-08-27 01:55:42 +09:00
Jeong YunWon
84dd5b02ce
Merge pull request #2963 from moreal/bugfix/correct-init-method-error-message
...
Fix missing positional argument message
2021-08-27 01:54:25 +09:00
jfh
5e758f07b5
Add deque.__reduce__.
2021-08-26 19:15:32 +03:00
jfh
11349db67b
Update test_deque to CPython 3.8
2021-08-26 19:06:41 +03:00
jfh
4911f17ed2
Mark failing test.
2021-08-26 17:52:29 +03:00
jfh
27c0ff849b
Add test_rlcompleter.py from CPython 3.8.
2021-08-26 17:51:55 +03:00
jfh
5cefa72dd4
Add rlcompleter.py from CPython 3.8.
2021-08-26 17:51:16 +03:00
Alexander Stromberger
4e733c450b
added __add__ method to collections.deque
2021-08-26 22:50:22 +09:00
Jim Fasarakis-Hilliard
c57285bd83
Merge pull request #2969 from eldpswp99/add-mutation-check-logic-in-dict-update
...
Add mutation check in dict.merge.
2021-08-26 16:15:28 +03:00
eldpswp99
9addff5ba9
add mutation check in dict.merge
2021-08-26 21:02:45 +09:00
Jeong YunWon
2657b8f936
Merge pull request #2968 from eldpswp99/make-dict-copy-order-when-copied-from-ordered-dict
...
make dict copy order when copied from ordered dict
2021-08-26 20:58:44 +09:00
eldpswp99
e7948e94a9
make dict copy order when copied from ordered dict
2021-08-26 19:55:23 +09:00
snowapril
d0afc4c3bc
set range iter type not creatable by calling type
...
This commit fix `RangeTest.test_range_iterators_invocation` in
[`test_range.py`](https://github.com/RustPython/RustPython/blob/main/Lib/test/test_range.py#L507 ).
This is last `TODO` in `test_range.py`.
By add slot tp_new to both types and return new_type_error, prevent
creation of range_iterator and longrange_iterator by calling its type.
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-08-26 16:15:28 +09:00
Moreal
9ddc6ba0d6
Unmark fixed test
2021-08-26 00:30:08 +09:00
Kangzhi Shi
343d158c34
fix pattern for construct the bytes and bytearray
2021-08-25 09:44:48 +02:00
snowapril
2122d91314
add expected failure annotations to fail tests
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-08-25 15:15:53 +09:00