[New-bugs-announce] [issue20750] Roundtrip-test tokenize.untokenize(iterable_of_5_tuples)

Terry J. Reedy report at bugs.python.org
Sun Feb 23 23:07:06 CET 2014


New submission from Terry J. Reedy:

Currently, test_tokenize.roundtrip only tests the 2-tuple mode of untokenize. The currently buggy 5-tuple mode needs to be tested also, as far as possible, to reduce the chance of introducing more bugs when fixing current bugs. When this is done, all the constructed tests pass. Good so far.

The doctest normally tests 10 files selected from test/test_*.py and a few tries showed no problem. However, when testing all with -ucpu. 
F:\Python\dev> 3\py33\pcbuild\python_d -m test -ucpu test_tokenize
7 failed. So we must remove these from the list of candidates until the failure cause is determined and either fixed or determined not fixable (as with test_3131.py).

As suggested in the revised docstring, finding the failure items for these 7 would be much easier if the file roundtrip test were removed from the doctest and made into a unittest with assertEqual.

----------
assignee: terry.reedy
components: Library (Lib), Tests
messages: 212034
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Roundtrip-test tokenize.untokenize(iterable_of_5_tuples)
type: behavior
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list