summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sgmllib.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-2/+1
|
* Forward port of 51850 from release25-maint branch.Neal Norwitz2006-09-111-15/+13
| | | | | | | As mentioned on python-dev, reverting patch #1504333 because it introduced an infinite loop in rev 47154. This patch also adds a test to prevent the regression.
* SF bug #1504333: sgmlib should allow angle brackets in quoted valuesFred Drake2006-06-291-0/+15
| | | | | | | (modified patch by Sam Ruby; changed to use separate REs for start and end tags to reduce matching cost for end tags; extended tests; updated to avoid breaking previous changes to support IPv6 addresses in unquoted attribute values)
* - SF bug #853506: IP6 address parsing in sgmllibFred Drake2006-06-231-8/+42
| | | | | | | | | | ('[' and ']' were not accepted in unquoted attribute values) - cleaned up tests of character and entity reference decoding so the tests cover the documented relationships among handle_charref, handle_entityref, convert_charref, convert_codepoint, and convert_entityref, without bringing up Unicode issues that sgmllib cannot be involved in
* SF patch 1504676: Make sgmllib char and entity references pluggableFred Drake2006-06-161-0/+27
| | | | (implementation/tests contributed by Sam Ruby)
* add tests for two cases that are handled correctly in the current code,Fred Drake2006-06-141-2/+7
| | | | but that SF patch 1504676 as written mis-handles
* - make some disabled tests run what they intend when enabledFred Drake2006-06-141-13/+13
| | | | - remove some over-zealous triple-quoting
* patch #1462498: handle entityrefs in attribute values.Georg Brandl2006-04-011-0/+14
|
* add tests that make sure buffer boundaries are handled properly for SGML ↵Fred Drake2004-09-081-0/+13
| | | | | | comments (see SF patch #901369)
* Allow "@" in unquoted attribute values.Fred Drake2003-04-291-0/+9
| | | | | Added test that checks for characters allowed in the query part of URLs. Backport candidate.
* Accept commas in unquoted attribute values.Fred Drake2003-03-141-0/+4
| | | | This closes SF patch #669683.
* Add regression test for a bug found in the version of the markupbaseFred Drake2002-09-251-0/+6
| | | | | | module used in the Zope TAL implementation. The bug was already fixed in the Python standard library, but the regression test would be good to keep around.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Added several new tests to check the behavior with respect to doctypeFred Drake2001-09-241-6/+77
| | | | | | | declarations and weird markup that we used to accept & ignore that recent versions raised an exception for; the original behavior has been restored and augmented (the user can decide what to do if they care; the default is to ignore it as done in early versions).
* Add a unit test for sgmllib (needs work, but has already caught problems).Fred Drake2001-07-161-0/+243
Based on the test for the HTMLParser module.