Commit Graph

10190 Commits

Author SHA1 Message Date
Padraic Fanning
d347dbb01e Update shlex.py to CPython 3.9 2022-01-17 11:14:43 -05:00
Padraic Fanning
65cb692810 Update test_shlex.py to CPython 3.9 2022-01-17 11:13:36 -05:00
Jeong YunWon
460ab670d4 Merge pull request #3521 from fanninpm/test-random
Update test_random.py to CPython 3.9
2022-01-17 16:58:29 +09:00
Padraic Fanning
4f6486da19 Unmark passing tests 2022-01-16 20:43:55 -05:00
Padraic Fanning
a4ef5f0fd1 Mark erroring tests 2022-01-16 20:39:26 -05:00
Padraic Fanning
510a52b59d Fix case where length = 0 2022-01-16 20:24:56 -05:00
Padraic Fanning
f01463fc12 Add proper error message for negative length 2022-01-16 20:24:18 -05:00
Padraic Fanning
0d979d8b3e Allow random.getrandbits(0) 2022-01-16 20:23:40 -05:00
Padraic Fanning
6b795a7e49 Deduplicate random.randbytes
random.randbytes() is now in random.py
2022-01-16 16:18:06 -05:00
Padraic Fanning
e766513ad3 Update random.py to CPython 3.9*
*for the most part, and keeps our annotations
2022-01-16 14:24:25 -05:00
Padraic Fanning
d59042912e Update test_random.py to CPython 3.9 2022-01-16 13:59:10 -05:00
Noa
9c728dfe53 Merge pull request #3516 from coolreader18/fix-ci
Fix doctests in ci
2022-01-14 19:53:26 -06:00
Noa
1188369956 Fix clippy warnings with 1.58 & convert some format strings to capture-args 2022-01-13 23:53:25 -06:00
Noa
78b17ba940 Fix doctests in ci 2022-01-13 23:26:02 -06:00
Noa
730fda0f9e Fix doc comment for Interpreter 2022-01-13 23:26:01 -06:00
Noa
db3b3127df Merge pull request #3488 from deantvv/frozen-import-helper
import_helper: refactor `frozen_modules`
2021-12-09 11:32:22 -06:00
Jeong YunWon
38513cb468 Merge pull request #3462 from qingshi163/mapping-protocol2
Refactor Mapping Protocol and Item Protocol
2021-12-03 21:18:25 +09:00
Kangzhi Shi
ae538943c0 fix ass_subscript check 2021-12-01 20:40:04 +02:00
Kangzhi Shi
6a996b04c8 move obj downcast to AsMapping 2021-12-01 20:16:18 +02:00
Jeong YunWon
40991b9645 Merge pull request #3489 from TeamTamoad/uuid-3.9
Update uuid to version 3.9.9
2021-12-02 01:28:56 +09:00
Narawit Rakket
bc1bbc06dd test(uuid): remove unnecessary expectedFailure from test_uuid 2021-12-01 20:01:05 +07:00
Narawit Rakket
16a048a552 feat(uuid): update uuid to version 3.9.9 2021-12-01 20:00:48 +07:00
Jeong YunWon
189a55c09f Merge pull request #3455 from BongYang/collection_abc
Update _collection_abc.py Cpython v3.9.7
2021-12-01 21:18:34 +09:00
Dean Li
45d02859cb import_helper: refactor frozen_modules
`frozen_modules` requires non-trivial changes in import (`imp.rs`)
and from the doc it is deprecated since 3.3 which makes this feacture
unlikely to be support on this project.
So instead of implementing this feature, I make `frozen_modules` to
raise exception if `frozen` is required. Other than that, all implementation
is just like the upstream version (except one TODO comment to remind
us there is something not fully supported)
2021-12-01 20:06:38 +08:00
LeeJungwon
d6031baaa6 Update _collection_abc.py Cpython v3.9.7 2021-12-01 16:46:59 +09:00
Noa
021563932b Merge pull request #3453 from youknowone/posonly-kwargs
allow passing a named argument to varkwargs function
2021-11-30 15:22:50 -06:00
Jeong YunWon
3c5e13f7f1 Merge pull request #3461 from Byeongjee/dict-iterator-reduce
Implement reduce() for dict iterators
2021-11-30 14:34:32 +09:00
Jeong YunWon
5077d6f700 Merge pull request #3480 from deantvv/test-support-import-helper
Test: move import_helper out
2021-11-30 14:30:21 +09:00
Noa
cc2b97bf79 Merge pull request #3482 from Snowapril/keyword_module
Replace keyword module with cpython code
2021-11-29 18:23:04 -06:00
Noa
99959270cc Merge pull request #3481 from Snowapril/builtin_constants
Register `True`, `False`, `None` to builtins
2021-11-29 18:18:47 -06:00
snowapril
9a2b67e3a7 Add keyword module from cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-11-29 23:40:42 +09:00
snowapril
1aa750b1e4 Remove keyword module from rust-side
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-11-29 23:40:24 +09:00
snowapril
fdd329ed0a Register True, False, None to builtins
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-11-29 23:35:01 +09:00
Dean Li
14727e6432 test: mark win32 failure test 2021-11-29 21:03:03 +08:00
Dean Li
6f98288e84 test: use import_helper 2021-11-29 21:03:02 +08:00
Dean Li
c2baf11119 test: move import_helper out 2021-11-29 21:01:35 +08:00
Jeong YunWon
1269c7fc28 Merge pull request #3474 from TeamTamoad/hashlib
feat(hashlib): add usedforsecurity kwarg to hash functions
2021-11-29 20:01:19 +09:00
Narawit Rakket
45c22af5c7 feat(hashlib): add test_hashlib from CPython v3.9.9 2021-11-29 16:50:24 +07:00
Narawit Rakket
7e3bbbb38c feat(hashlib): add usedforsecurity kwarg to hash functions 2021-11-29 16:49:38 +07:00
Jeong YunWon
32a9b958e5 Merge pull request #3465 from 24seconds/fix_test_base64
Support tuple type also for memoryview shape arg
2021-11-29 16:10:20 +09:00
Jeong YunWon
65d9e2fa86 skip to create list object 2021-11-29 15:05:19 +09:00
Noa
00155abe45 Merge pull request #3473 from tai271828/pr-issue-2889-dis
feat(Lib): print the disassembled info
2021-11-28 16:59:26 -06:00
Taihsiang Ho (tai271828)
acc75de4ef feat(Lib): print the disassembled info
Issue: #2889
2021-11-28 22:33:59 +01:00
Jeong YunWon
2ceeea8c37 Merge pull request #3476 from deantvv/test-update-2
Update test for support/os_helper.py (second attempt)
2021-11-29 03:12:03 +09:00
Jeong YunWon
4f2d70f915 Merge pull request #3475 from hrchu/pep604
Allow writing union types as X | Y
2021-11-29 03:10:01 +09:00
Dean Li
4161858ec2 Revert "test: remove unexpectedFailure for nt"
This reverts commit 20cef397f0.
2021-11-28 23:25:45 +08:00
Dean Li
4109b12f03 test: mark win32 failure test 2021-11-28 23:25:17 +08:00
Dean Li
be3f3412e1 os_helper: add XXX RUSTPYTHON back 2021-11-28 22:42:03 +08:00
Dean Li
20cef397f0 test: remove unexpectedFailure for nt 2021-11-28 20:51:34 +08:00
Dean Li
cad10fedd4 test: update importlib 2021-11-28 20:51:34 +08:00