diff options
author | Fred Drake <fdrake@acm.org> | 2005-12-14 06:20:35 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2005-12-14 06:20:35 (GMT) |
commit | c6730e1772f52b99feaffb95cdb7774905340d52 (patch) | |
tree | 0f125cf464348edd71c41f35c4ecbff8f8fe6114 /Lib/test/test_sax.py | |
parent | cc117dbb9d925ade41ae3e43ff2292b83b5d9b32 (diff) | |
download | cpython-c6730e1772f52b99feaffb95cdb7774905340d52.zip cpython-c6730e1772f52b99feaffb95cdb7774905340d52.tar.gz cpython-c6730e1772f52b99feaffb95cdb7774905340d52.tar.bz2 |
move the xml package implementation to xmlcore, and adjust the tests to
test that package, not the xmlcore/PyXML switcheroo fiasco in the xml
module/package
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r-- | Lib/test/test_sax.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 210ca19..ded81fb 100644 --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -1,17 +1,17 @@ # regression test for SAX 2.0 -*- coding: iso-8859-1 -*- # $Id$ -from xml.sax import make_parser, ContentHandler, \ - SAXException, SAXReaderNotAvailable, SAXParseException +from xmlcore.sax import make_parser, ContentHandler, \ + SAXException, SAXReaderNotAvailable, SAXParseException try: make_parser() except SAXReaderNotAvailable: # don't try to test this module if we cannot create a parser raise ImportError("no XML parsers available") -from xml.sax.saxutils import XMLGenerator, escape, unescape, quoteattr, \ - XMLFilterBase -from xml.sax.expatreader import create_parser -from xml.sax.xmlreader import InputSource, AttributesImpl, AttributesNSImpl +from xmlcore.sax.saxutils import XMLGenerator, escape, unescape, quoteattr, \ + XMLFilterBase +from xmlcore.sax.expatreader import create_parser +from xmlcore.sax.xmlreader import InputSource, AttributesImpl, AttributesNSImpl from cStringIO import StringIO from test.test_support import verify, verbose, TestFailed, findfile import os @@ -36,17 +36,17 @@ def test_make_parser2(): # Creating parsers several times in a row should succeed. # Testing this because there have been failures of this kind # before. - from xml.sax import make_parser + from xmlcore.sax import make_parser p = make_parser() - from xml.sax import make_parser + from xmlcore.sax import make_parser p = make_parser() - from xml.sax import make_parser + from xmlcore.sax import make_parser p = make_parser() - from xml.sax import make_parser + from xmlcore.sax import make_parser p = make_parser() - from xml.sax import make_parser + from xmlcore.sax import make_parser p = make_parser() - from xml.sax import make_parser + from xmlcore.sax import make_parser p = make_parser() except: return 0 @@ -108,7 +108,7 @@ def test_make_parser(): try: # Creating a parser should succeed - it should fall back # to the expatreader - p = make_parser(['xml.parsers.no_such_parser']) + p = make_parser(['xmlcore.parsers.no_such_parser']) except: return 0 else: |