summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dictviews.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-98512: Add more tests for `ValuesView` (#98515)Nikita Sobolev2022-11-031-0/+3
|
* gh-96408: Test set operation on items dict view. (GH-96438)Filip Łajszczak2022-08-301-0/+18
|
* bpo-38202: Fix a crash in dict_view & non-itearble. (GH-16241)Zackery Spytz2019-10-131-0/+19
|
* test_dictviews: Add testcase for dictviews_sub (GH-16660)Dong-hee Na2019-10-081-0/+2
|
* bpo-38210: Fix intersection operation with dict view and iterator. (GH-16602)Dong-hee Na2019-10-061-0/+11
|
* bpo-27575: port set intersection logic into dictview intersection (GH-7696)Forest Gregg2019-08-261-0/+14
|
* bpo-18533: Avoid RecursionError from repr() of recursive dictview (#4823)bennorth2018-01-261-0/+15
| | | | | | | | | | | | | | | | | dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "..." if so. test_recursive_repr(): Check for the string rather than a RecursionError. (Test cannot be any tighter as contents are implementation-dependent.) test_deeply_nested_repr(): Add new test, replacing the original test_recursive_repr(). It checks that a RecursionError is raised in the case of a non-recursive but deeply nested structure. (Very similar to what test_repr_deep() in test/test_dict.py does for a normal dict.) OrderedDictTests: Add new test case, to test behavior on OrderedDict instances containing their own values() or items().
* bpo-30144: Import collections ABC from collections.abc rather than ↵Serhiy Storchaka2017-04-241-18/+18
| | | | collections. (#1263)
* mergeRaymond Hettinger2016-09-191-0/+26
|
* merge 3.5 (closes #26478)Benjamin Peterson2016-03-041-0/+4
|\
| * merge 3.4 (closes #26478)Benjamin Peterson2016-03-041-0/+4
| |\
| | * properly use the ObjArgs variant of CallMethod in dictview binary operations ↵Benjamin Peterson2016-03-041-0/+4
| | | | | | | | | | | | (closes #26478)
* | | Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+18
|\ \ \ | |/ / | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
| * | Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+18
| |\ \ | | |/ | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
| | * Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+18
| | | | | | | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
* | | Merge 3.5 (Issue #19235)Yury Selivanov2015-07-031-1/+1
|\ \ \ | |/ /
| * | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-1/+1
| | |
| * | Reverting my previous commit.Yury Selivanov2015-05-301-22/+0
|/ / | | | | | | Something went horribly wrong when I was doing `hg rebase`.
* | Issue #24286: Forward port dict view abstract base class tests.Raymond Hettinger2015-05-261-0/+22
| |
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-5/+1
|/ | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* #18357: add tests for dictview set difference. Patch by Fraser Tweedale.Ezio Melotti2013-08-081-0/+14
|
* add recursive repr testBenjamin Peterson2013-05-201-0/+5
|
* Issue #9212: Added the missing isdisjoint method to the dict_keys andDaniel Stutzbach2010-09-021-0/+35
| | | | | dict_items views. The method is required by the collections.Set ABC, which the views register as supporting.
* Forward port unit tests for set operation and repr.Alexandre Vassalotti2010-05-041-0/+76
| | | | Patch by Alexander Belopolsky.
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-11/+11
| | | | A patch from Dave Malcolm.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-11/+11
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Make dict.keys() and dict.items() comparable to sets, using == and !=.Guido van Rossum2007-02-121-2/+28
| | | | | (PEP 3106 requires subset comparisons too, those will come later if someone really wants them. :-)
* - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;Guido van Rossum2007-02-111-6/+6
| | | | | | | | | | and .keys(), .items(), .values() return dict views. The dict views aren't fully functional yet; in particular, they can't be compared to sets yet. but they are useful as "iterator wells". There are still 27 failing unit tests; I expect that many of these have fairly trivial fixes, but there are so many, I could use help.
* Implement __contains__ for dict_keys and dict_items.Guido van Rossum2007-02-101-0/+22
| | | | | (Not for dict_values, where it can't be done faster than the default implementation which just iterates the elements.)
* Endow dict views with a proper length method.Guido van Rossum2007-02-101-0/+3
|
* Very preliminary work on dict views.Guido van Rossum2007-02-101-0/+25