summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sgmllib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-09-25 16:29:17 (GMT)
committerFred Drake <fdrake@acm.org>2002-09-25 16:29:17 (GMT)
commit04d9a80fef4815891044a4b3c08fe0faa9cedbaa (patch)
tree4bed6768f939ec5703d2ab9f47cec8141f273ecc /Lib/test/test_sgmllib.py
parent6b3db551beaa3961a5b931c857e208226f7f8e8b (diff)
downloadcpython-04d9a80fef4815891044a4b3c08fe0faa9cedbaa.zip
cpython-04d9a80fef4815891044a4b3c08fe0faa9cedbaa.tar.gz
cpython-04d9a80fef4815891044a4b3c08fe0faa9cedbaa.tar.bz2
Add regression test for a bug found in the version of the markupbase
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.
Diffstat (limited to 'Lib/test/test_sgmllib.py')
-rw-r--r--Lib/test/test_sgmllib.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py
index f6f1309..90ed87e 100644
--- a/Lib/test/test_sgmllib.py
+++ b/Lib/test/test_sgmllib.py
@@ -262,6 +262,12 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
("data", "def"),
])
+ def test_enumerated_attr_type(self):
+ s = "<!DOCTYPE doc [<!ATTLIST doc attr (a | b) >]>"
+ self.check_events(s, [
+ ('decl', 'DOCTYPE doc [<!ATTLIST doc attr (a | b) >]'),
+ ])
+
# XXX These tests have been disabled by prefixing their names with
# an underscore. The first two exercise outstanding bugs in the
# sgmllib module, and the third exhibits questionable behavior