[Python-checkins] python/dist/src/Lib/test test_sax.py, 1.24.16.2, 1.24.16.3

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Jul 18 20:36:21 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1908/Lib/test

Modified Files:
      Tag: release23-maint
	test_sax.py 
Log Message:
Remove test for #919008. Users may have old PyXML versions installed,
in which case the test will fail. For the mainline, the test should stay,
and the minimum required PyXML version needs to be raised.


Index: test_sax.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sax.py,v
retrieving revision 1.24.16.2
retrieving revision 1.24.16.3
diff -C2 -d -r1.24.16.2 -r1.24.16.3
*** test_sax.py	1 Jun 2004 12:58:18 -0000	1.24.16.2
--- test_sax.py	18 Jul 2004 18:36:18 -0000	1.24.16.3
***************
*** 490,528 ****
          return 0
  
- def test_sax_parse_exception_str():
-     # pass various values from a locator to the SAXParseException to
-     # make sure that the __str__() doesn't fall apart when None is
-     # passed instead of an integer line and column number
-     #
-     # use "normal" values for the locator:
-     str(SAXParseException("message", None,
-                           DummyLocator(1, 1)))
-     # use None for the line number:
-     str(SAXParseException("message", None,
-                           DummyLocator(None, 1)))
-     # use None for the column number:
-     str(SAXParseException("message", None,
-                           DummyLocator(1, None)))
-     # use None for both:
-     str(SAXParseException("message", None,
-                           DummyLocator(None, None)))
-     return 1
- 
- class DummyLocator:
-     def __init__(self, lineno, colno):
-         self._lineno = lineno
-         self._colno = colno
- 
-     def getPublicId(self):
-         return "pubid"
- 
-     def getSystemId(self):
-         return "sysid"
- 
-     def getLineNumber(self):
-         return self._lineno
- 
-     def getColumnNumber(self):
-         return self._colno
  
  # ===========================================================================
--- 490,493 ----



More information about the Python-checkins mailing list