Commit Graph
33 Commits
Author SHA1 Message Date
Dino c7a19f0eea dict: match CPython errors for invalid update sequence elements (#8338)
* fix dict update type error

* Use tuple for dictionary update sequence pairs

* Propagate errors while adding dict update sequence notes

* Match BaseException.add_note error message with CPython
2026-07-30 07:53:35 +09:00
Shahar Naveh 8ff3141f3f 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
Shahar Naveh 30323d5a52 Update seq tests from 3.14.4 (#7606)
* Update seq related tests
2026-04-15 14:17:01 +09:00
CPython Developers 3174072f03 Update test_dict from v3.14.3 2026-02-06 00:35:00 +09:00
Jeong, YunWon 714d1ce58b gc module internal structure and API (#6910)
* gc module internal structure and API

Add gc_state module with GcState, GcGeneration, GcDebugFlags, GcStats.
Replace gc module stubs with working API backed by gc_state.
Add gc_callbacks and gc_garbage to Context.
Add is_gc_tracked, gc_finalized, gc_get_referents to PyObject.
Collection is stubbed (returns 0) — actual algorithm to follow.

* fix dict/weakref/generators

* unmark test_asyncio

* apply review
2026-02-01 08:51:39 +09:00
Shahar Naveh 97e85b220e Update test_{dict,weakref}.py from 3.13.5 (#5963)
* Update test_dict.py from 3.13.5

* Update `test_weakref.py` from 3.13.5
2025-07-14 14:21:59 +09:00
NakanoMiku d5e4af7a4b Update test_dict.py from CPython v3.12.0 2023-11-30 20:51:40 +08:00
JaeyoungAhn 62ae7339fe Update test_dict.py from CPython v3.11.2 2023-03-25 19:59:31 +09:00
Jeong Yunwon 7917d124ff unmark fixed test 2022-07-18 22:52:26 +09:00
Jeong Yunwon fda0e0a94e adjust failing markers for test_dict 2022-07-18 03:54:49 +09:00
CPython developers c62076e0e9 Update test_dict from CPython 3.10.5 2022-07-18 03:54:49 +09:00
jeon-yongjun 669d1ca38a Add Reduce method in reverse_iter (#3597) 2022-04-10 13:32:34 +09:00
d1t2 3037508b0a Fix test_dict.test_fromkeys()
Based on CPython implementation, dictobject.c, construct the new
object with type and call corresponding setitem method.
2022-03-30 09:22:24 +08:00
Byeongjee Kang 91489352c5 Implement reduce() for dict iterators
This fixes test_iter_dict, test_iterator_pickling, test_itemiterator_pickling,
and test_valuesiterator_pickling.
2021-11-27 23:57:39 +09:00
joohongpark 5ceb2be86e fixed set.{__ror__, __sub__} operator to behave according to type 2021-11-11 16:11:48 +09:00
Aphek e732669224 Make it possible for rust functions to increase recursion depth (#3252)
Make it possible for rust functions to increase recursion depth
2021-10-13 08:12:12 +03:00
Jack-R-lantern 8056604102 Add __contains__ in dict_items 2021-10-09 17:48:55 +09:00
Dolpheyn 922d233faa Add rand, ror, rsub operators in dict_keys 2021-10-09 07:53:38 +08:00
joohongpark c2d6bef793 Add rand, ror, rsub operators in dict_items, remove test annotation 2021-10-08 14:44:39 +09:00
eldpswp99 9addff5ba9 add mutation check in dict.merge 2021-08-26 21:02:45 +09:00
eldpswp99 e7948e94a9 make dict copy order when copied from ordered dict 2021-08-26 19:55:23 +09:00
Myunghoon Park 48437d0b93 adjust dict reverse iterator next to new dict entries structure 2021-08-21 21:15:37 +09:00
eldpswp99 ce99057c81 make dict delete remains order 2021-08-17 20:41:37 +09:00
Jeong YunWon fb69414f5d unskip test_dict tests 2020-11-12 11:30:33 +09:00
hyperbora 88cc264774 fix dict.update 2020-10-06 23:07:37 +09:00
Noah 131736eecf Make setdefault atomic 2020-09-24 23:51:33 -05:00
Jeong YunWon aeebc444e2 CPython-compatible drop implementation 2020-09-15 04:04:21 +09:00
clemado1 0c08d3006e Add rich comparison for dict_iterator
Modified inner_eq to inner_cmp so that dict_iterator can use and added rich comparison for dict_iterator.
2020-09-13 12:15:13 +09:00
Jeong YunWon b0541c5e0c remove skip markers from dict tests 2020-08-18 18:13:33 +09:00
Noah 6b580c5921 Get regrtests working on Windows 2020-02-29 10:34:12 -06:00
Aviv Palivoda 9685b77cf3 Add repr for dict_keys, dict_values and dict_items 2020-01-30 12:28:14 +02:00
Aviv Palivoda dd8a0412b0 Mark failed and error tests for dict 2020-01-17 18:02:14 +02:00
Aviv Palivoda bdc627ef44 Add CPython test_dict.py 2020-01-17 17:58:51 +02:00