[New-bugs-announce] [issue16886] Doctests in test_dictcomp depend on dict order

Frank Wierzbicki report at bugs.python.org
Mon Jan 7 18:12:14 CET 2013


New submission from Frank Wierzbicki:

test_dictcomp hard codes the dict output of various tests of Dict Comprehensions. Since Jython has a different dict ordering we are currently altering this test. When we get to 3.x it will be nicer if we can use this test as is. Also I've seen some discussion on Python-Dev that CPython devs want to get rid of dict ordering in the tests anyway. Patch attached, which assigns the dict values to a variable and compares it in the tests instead of just dumping the output in the doctests.

----------
components: Tests
files: test_dictcomp.patch
keywords: patch
messages: 179272
nosy: fwierzbicki
priority: normal
severity: normal
status: open
title: Doctests in test_dictcomp depend on dict order
versions: Python 3.4
Added file: http://bugs.python.org/file28613/test_dictcomp.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16886>
_______________________________________


More information about the New-bugs-announce mailing list