summaryrefslogtreecommitdiff
path: root/test/normalize.py
AgeCommit message (Collapse)Author
2015-09-22Set convert_charrefs=False in normalize.py.John MacFarlane
This defeats the new default as of python 3.5, and allows the script to work with python 3.5. Closes #83.
2015-09-20Python 3.5 compatibility: add placeholder for HTMLParseErrorZhiming Wang
HTMLParseError was removed in Python 3.5. Since it could never be thrown in Python 3.5+, we simply define a placeholder when HTMLParseError cannot be imported.
2015-06-16normalize.py: don't collapse whitespace in pre contexts.John MacFarlane
2014-12-29Updated tests to use python3.John MacFarlane
2014-12-22Fixed normalization bug, added more doctests for normalization.John MacFarlane
* The tests test for removal of whitespace around block-level tags. * Previously whitespace wasn't removed before an initial block-level tag; this commit fixes that. * Also revised wording so it's clear that whitespace is removed on both sides of block-level tags. Closes #246 in a slightly different way.
2014-12-19Added a few more doctests for HTML normalization (#245).John MacFarlane
2014-12-19Fixed whitespace normalization (#245).John MacFarlane
2014-12-19Expose failure to normalize whitespacesCiro Santilli
2014-11-29test: Factored out normalization code into normalize.py.John MacFarlane