]> granicus.if.org Git - python/commit
Untokenize: An logically incorrect assert tested user input validity.
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 17 Feb 2014 21:45:38 +0000 (16:45 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 17 Feb 2014 21:45:38 +0000 (16:45 -0500)
commit7751a34400d05d125de8d8f23339756f8d3f774d
treeee3fc9aba96d3826b6dfeb9c2c696ba3e5a207ea
parent5503579db68f22e0ddca030f2aa5cd48373e08c0
Untokenize: An logically incorrect assert tested user input validity.
Replace it with correct logic that raises ValueError for bad input.
Issues #8478 and #12691 reported the incorrect logic.
Add an Untokenize test case and an initial test method.
Lib/test/test_tokenize.py
Lib/tokenize.py