summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dataclasses
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-89683: add tests for `deepcopy` on frozen dataclasses (GH-123098) ↵Bénédikt Tran2024-09-301-0/+43
| | | | | | | | (#124678) * gh-89683: add tests for `deepcopy` on frozen dataclasses (gh-123098) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* [3.13] gh-91126: Docs and tests for slotted dataclasses with ↵Miss Islington (bot)2024-09-011-0/+32
| | | | | | | | `__init_subclass__` (GH-123342) (#123568) gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (GH-123342) (cherry picked from commit 75e72822a390df81ca11355d8e0aac88e4046c27) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-119260: Clarify is_dataclass Behavior for Subclasses in ↵Miss Islington (bot)2024-05-301-0/+18
| | | | | | | | | Documentation and Tests (GH-119480) (#119760) gh-119260: Clarify is_dataclass Behavior for Subclasses in Documentation and Tests (GH-119480) (cherry picked from commit bf4ff3ad2e362801e87c85fffd9e140b774cef26) Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com> Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.13] gh-119581: Add a test of InitVar with name shadowing (GH-119582) ↵Miss Islington (bot)2024-05-281-0/+23
| | | | | | | | (#119672) gh-119581: Add a test of InitVar with name shadowing (GH-119582) (cherry picked from commit 6ec371223dff4da7719039e271f35a16a5b861c6) Co-authored-by: Steven Troxler <steven.troxler@gmail.com>
* [3.13] gh-118033: Fix `__weakref__` not set for generic dataclasses ↵Miss Islington (bot)2024-05-091-0/+106
| | | | | | | | (GH-118099) (#118821) gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) (cherry picked from commit fa9b9cb11379806843ae03b1e4ad4ccd95a63c02) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-116647: Fix recursive child in dataclasses (#116790)et-repositories2024-03-191-0/+9
|
* gh-105866: fix dataclass with slots=True, weakref_slot=True (#105870)Aviel Boag2024-03-191-0/+11
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-115285: Fix `test_dataclasses` with `-OO` mode (#115286)Nikita Sobolev2024-02-121-0/+3
|
* gh-109409: Fix inheritance of frozen dataclass from non-frozen dataclass ↵Nikita Sobolev2023-10-121-0/+95
| | | | | | mixins (gh-109437) Fix inheritance of frozen dataclass from non-frozen dataclass mixins
* gh-110273: dataclasses.replace() now raise TypeError for all invalid ↵Serhiy Storchaka2023-10-041-6/+6
| | | | | | | arguments (GH-110274) dataclasses.replace() now raises TypeError instead of ValueError if specify keyword argument for a field declared with init=False or miss keyword argument for required InitVar field.
* gh-108303: Create Lib/test/test_dataclasses/ directory (#108978)Victor Stinner2023-09-066-0/+4687
Move test_dataclasses.py and its "dataclass_*.py" modules into the new Lib/test/test_dataclasses/ subdirectory.