mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Do not chdir when running test_xml_etree, and enhance the findfile helper.
This commit is contained in:
parent
13ba1a1c65
commit
1b51c3d4de
4 changed files with 12 additions and 27 deletions
|
@ -15,10 +15,9 @@ from xml.sax.xmlreader import InputSource, AttributesImpl, AttributesNSImpl
|
|||
from cStringIO import StringIO
|
||||
from test.test_support import findfile, run_unittest
|
||||
import unittest
|
||||
import os
|
||||
|
||||
TEST_XMLFILE = findfile(os.path.join("xmltestdata", "test.xml"))
|
||||
TEST_XMLFILE_OUT = findfile(os.path.join("xmltestdata", "test.xml.out"))
|
||||
TEST_XMLFILE = findfile("test.xml", subdir="xmltestdata")
|
||||
TEST_XMLFILE_OUT = findfile("test.xml.out", subdir="xmltestdata")
|
||||
|
||||
ns_uri = "http://www.python.org/xml-ns/saxtest/"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue