From: Fred Drake <fdrake@acm.org>
Date: Wed, 25 Sep 2002 16:29:17 +0000 (+0000)
Subject: Add regression test for a bug found in the version of the markupbase
X-Git-Tag: v2.3c1~3987
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04d9a80fef4815891044a4b3c08fe0faa9cedbaa;p=python

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.
---

diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py
index f6f1309353..90ed87ee82 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