Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue25616

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Extract OrderedDict tests into separate file
Type:enhancementStage:resolved
Components:TestsVersions:Python 3.6, Python 3.4, Python 3.5, Python 2.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: eric.snow, python-dev, rhettinger, serhiy.storchaka
Priority:normalKeywords:patch

Created on2015-11-13 13:01 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
test_ordered_dict.patchserhiy.storchaka,2015-11-16 13:45
Messages (5)
msg254602 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2015-11-13 13:01
OrderedDict tests now are about 1/3 of test_collections, and I think their volume will grow. I suggest to extract these tests into separate file test_ordereddict. There are precedences: test_deque (deque also is implemented in C), and test_userdict, test_userlist and test_userstring (for historical reasons).The main reason to me is the possibility to run quick OrderedDict tests (and only OrderedDict tests).
msg254618 -(view)Author: Eric Snow (eric.snow)*(Python committer)Date: 2015-11-13 20:05
FWIW, I totally support this.  I originally had a patch up that did so but Raymond indicated that he'd rather not split the tests out though I made exactly the same arguments that you have.  Perhaps he's changed his mind in the intervening years (or I misunderstood his objections)? :)
msg254697 -(view)Author: Raymond Hettinger (rhettinger)*(Python committer)Date: 2015-11-15 21:52
If it helps with all the great work you're doing, go ahead and move the OD tests out to a separate file.
msg254732 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2015-11-16 13:45
Thank you Raymond. Here is a patch. It is in Git format, hence Rietveld will not work with it. During creating a patch I found a bug in test_dict_update, it tested only default implementation and didn't test subclasses.
msg255363 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2015-11-25 15:20
New changeset8d9a0540adf9 by Serhiy Storchaka in branch '3.4':Issue#25616: Tests for OrderedDict are extracted from test_collectionshttps://hg.python.org/cpython/rev/8d9a0540adf9New changeset46e95e0eaae5 by Serhiy Storchaka in branch '3.5':Issue#25616: Tests for OrderedDict are extracted from test_collectionshttps://hg.python.org/cpython/rev/46e95e0eaae5New changeset81fa901162f9 by Serhiy Storchaka in branch 'default':Issue#25616: Tests for OrderedDict are extracted from test_collectionshttps://hg.python.org/cpython/rev/81fa901162f9New changesetafaad8dc8edf by Serhiy Storchaka in branch '2.7':Issue#25616: Tests for OrderedDict are extracted from test_collectionshttps://hg.python.org/cpython/rev/afaad8dc8edf
History
DateUserActionArgs
2022-04-11 14:58:23adminsetgithub: 69802
2015-11-25 15:20:38python-devsetnosy: +python-dev
messages: +msg255363
2015-11-25 15:20:37serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2015-11-16 13:45:21serhiy.storchakasetfiles: +test_ordered_dict.patch
versions: + Python 2.7, Python 3.4, Python 3.5, Python 3.6
messages: +msg254732

keywords: +patch
stage: patch review
2015-11-15 21:52:49rhettingersetmessages: +msg254697
2015-11-13 20:05:58eric.snowsetmessages: +msg254618
2015-11-13 13:01:21serhiy.storchakacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp