]> 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:48 +0000 (16:45 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 17 Feb 2014 21:45:48 +0000 (16:45 -0500)
commit5e6db313686c200da425a54d2e0c95fa40107b1d
tree5586a30aaf9f83a3a1e2f7996773487366baa6e1
parentcf626032763077bf959937705ed35f9e2b40a862
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