Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04d9a80

Browse files
committed
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.
1 parent 6b3db55 commit 04d9a80

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_sgmllib.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ def test_illegal_declarations(self):
262262
("data", "def"),
263263
])
264264

265+
def test_enumerated_attr_type(self):
266+
s = "<!DOCTYPE doc [<!ATTLIST doc attr (a | b) >]>"
267+
self.check_events(s, [
268+
('decl', 'DOCTYPE doc [<!ATTLIST doc attr (a | b) >]'),
269+
])
270+
265271
# XXX These tests have been disabled by prefixing their names with
266272
# an underscore. The first two exercise outstanding bugs in the
267273
# sgmllib module, and the third exhibits questionable behavior

0 commit comments

Comments
 (0)