]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove test for #919008. Users may have old PyXML versions installed,
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 18 Jul 2004 18:36:18 +0000 (18:36 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 18 Jul 2004 18:36:18 +0000 (18:36 +0000)
in which case the test will fail. For the mainline, the test should stay,
and the minimum required PyXML version needs to be raised.

Lib/test/test_sax.py

index 8786094a974e9c8b3564682452d13b9a39c3fe6f..d80a193987605cc6bb6ebfca8672201bca51dcd0 100644 (file)
@@ -489,41 +489,6 @@ def test_expat_incomplete():
     else:
         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
 
 # ===========================================================================
 #