[Python-checkins] python/dist/src/Lib/test test_sgmllib.py,1.3,1.4

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 25 Sep 2002 09:29:19 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv31100

Modified Files:
	test_sgmllib.py 
Log Message:
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.


Index: test_sgmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sgmllib.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_sgmllib.py	23 Jul 2002 19:04:01 -0000	1.3
--- test_sgmllib.py	25 Sep 2002 16:29:17 -0000	1.4
***************
*** 263,266 ****
--- 263,272 ----
              ])
  
+     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