Commit Graph

58 Commits

Author SHA1 Message Date
Shahar Naveh
3ed8c91fef Update test/support to 3.14.5 (#7896)
* Update `test/support` to 3.14.5

* Adjuat test markers

* Add `test_set` to env polluting tests
2026-05-18 00:23:06 +09:00
Lee Dogeon
2567355a99 Emit deprecation warning for array typecode u (#7157) 2026-02-15 20:34:19 +09:00
ShaharNaveh
28ed23f7ca Update test_array.py from 3.14.3 2026-02-10 13:16:46 +02:00
Jeong, YunWon
6f1edf3b26 Remove static cache for builtins iter/reversed reduce
- Replace static_cell! cached builtins_iter/builtins_reversed with
  per-call vm.builtins.get_attr lookups to support runtime builtins
  mutation (CPython issue #101765)
- Refactor PositionIterInternal::reduce to take func, active, and
  empty callbacks; resolve builtins outside the lock to prevent
  deadlock from reentrant iterator access
- Add __reduce__ and fix reentrant next() in PyCallableIterator
- Remove expectedFailure from test_reverse_iterator_picking and
  test_reduce_mutating_builtins_iter
2026-02-10 00:49:12 +09:00
Jeong, YunWon
100b870175 Implement UTF-32 encode/decode and fix UTF-16 empty encode
- Add UTF-32, UTF-32-LE, UTF-32-BE encode/decode in _pycodecs.py
- Register utf_32 codec functions in codecs.rs via delegate_pycodecs
- Fix PyUnicode_EncodeUTF16 returning "" instead of [] for empty input
- Remove resolved expectedFailure decorators in test_codecs.py
- Add failure reasons to remaining expectedFailure comments
2026-02-02 12:50:34 +09:00
Jiseok CHOI
ff35dcd95a feat(vm/slot): implement Py_TPFLAGS_MANAGED_DICT for class objects (#5949) 2025-07-20 14:11:36 +09:00
Jeong YunWon
0a6e1e80d7 docs 2025-06-23 01:05:54 +09:00
Jiwoo Ahn
7188e0486a Update test_array.py from Cpython v3.11.2 2023-03-25 12:48:34 +09:00
John Pham
27233364bc Add init for array.rs (#4667) 2023-03-09 19:45:58 +09:00
Moreal
778b8fdb2b Unmark resolved tests 2023-01-24 05:56:52 +09:00
Daeun Lee
e6452d86d0 update array.index for optional range 2022-07-21 21:12:21 +09:00
Jeong YunWon
48241839aa Merge pull request #3868 from maong0927/arrayiter_reduce
add arrayiter.__reduce__
2022-07-19 06:53:40 +09:00
Jeong Yunwon
b1c29aacb1 adjust failing markers for array tests 2022-07-18 03:54:46 +09:00
CPython developers
8d3bac9c1e Update test_array from CPython 3.10.5 2022-07-18 03:54:46 +09:00
Kim, YeonWoo
21a7369953 Add weakproxy mapping 2022-07-15 00:49:20 +09:00
hyezzang
ab284c87fc update test_iterator_pickle
Co-authored-by: Yaminyam <siontama@gmail.com>
2022-07-13 18:04:17 +09:00
Dean Li
5ee4fb899b test: use os_helper 2021-11-28 20:51:32 +08:00
Jeong YunWon
913b78ca44 Revert "Merge pull request #3433 from deantvv/test-update"
This reverts commit 9fa5c5ac66, reversing
changes made to e7fa32c687.
2021-11-17 17:06:51 +09:00
Dean Li
49a5805d11 test: use os_helper 2021-11-13 02:18:33 +00:00
Kangzhi Shi
de47cd0acb Impl __reduce_ex__ with _array_reconstructor 2021-10-10 14:43:20 +02:00
Kangzhi Shi
ff0adc1204 Impl __reduce__ for array 2021-10-10 14:43:16 +02: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
Frank King
c1aaac02ed Implement array::_array_reconstructor 2021-08-30 22:21:53 +08:00
jfh
97b8d7ca7b Add checking for repeat on sequences. 2021-08-29 17:43:47 +03:00
Frank King
e652ae8fc0 Support unicode array type. 2021-08-21 20:18:05 +08:00
Robert Booth
af6b230dad Change int type checking, amend tests
- add a special_retrieve fudge function to the PyValue trait
- define the special_retrieve function for PyInt
- remove blocks on successful tests to reflect effect of changes
2021-04-25 01:18:57 +09:00
Kangzhi Shi
8522d120e5 fix array from bytes 2021-04-16 09:17:13 +02:00
Padraic Fanning
4ba5829fe1 Delete code smell 2021-02-27 19:37:01 -05:00
Padraic Fanning
79ac9ab93c Delete code smell 2021-02-27 14:01:45 -05:00
Padraic Fanning
138d0f8556 Unskip tests in test_array 2021-02-25 16:55:28 -05:00
Padraic Fanning
f909c7d9f6 Explain test_alloc_overflow skip 2021-02-07 15:49:41 -05:00
Padraic Fanning
2259ceee48 Explain UnicodeTest skip 2021-02-07 15:49:41 -05:00
Padraic Fanning
3d6179dce8 Explain test_tofrombytes skip 2021-02-07 15:49:41 -05:00
Kangzhi Shi
e1ddbda4fc fix unittest test_array.test_buffer 2020-10-10 16:59:44 +09:00
Kangzhi Shi
3cdab86444 test_array remove @skip for successed test 2020-10-09 10:58:37 +02:00
Kangzhi Shi
fa3fd724ac Fix array extend and improve 2020-09-15 09:10:38 +02:00
Noah
bd92c7eea0 Merge pull request #2196 from qingshi163/dev_array_byteswap
Implement array byteswap()
2020-09-10 17:52:20 -05:00
Kangzhi Shi
1f756dbbf4 Implement array __copy__() and __deepcopy__() 2020-09-10 08:12:11 +02:00
Kangzhi Shi
4a1cda77f8 Implement array fromlist 2020-09-09 20:01:14 +02:00
Kangzhi Shi
78ab0a225a Implement array byteswap() 2020-09-09 12:03:53 +02:00
Kangzhi Shi
48909327db Fix array compare oparation 2020-09-06 13:53:20 +02:00
Steve Shi
05b7acc95f Merge branch 'master' into dev_array_del 2020-09-04 10:25:47 +02:00
Kangzhi Shi
a056e7b86a Remove comment 2020-09-02 11:40:25 +02:00
Kangzhi Shi
fa6b8208ec Implement array delitem by slice 2020-09-02 11:37:27 +02:00
Kangzhi Shi
2cd634f956 Implement array delitem 2020-09-02 08:41:35 +02:00
Kangzhi Shi
cbaa7e1c00 Implement array __imul__ 2020-08-31 21:04:00 +02:00
Kangzhi Shi
d332c1f5a2 Implement array __mul__ and __rmul__ 2020-08-31 20:40:03 +02:00
Kangzhi Shi
22be6c89c1 Implement array __iadd__ 2020-08-31 19:30:22 +02:00
Kangzhi Shi
0d014935f0 Implement array __add__ 2020-08-31 18:14:21 +02:00