summaryrefslogtreecommitdiff
path: root/Lib/test/test_sax.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-13 12:41:48 +0000
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-13 12:41:48 +0000
commit1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be (patch)
tree1803f0b1f84dc7f33d9574d80ccac3bb14445eb8 /Lib/test/test_sax.py
parent13ba1a1c6571dad26e3030525556ec4b552b0865 (diff)
downloadcpython-git-1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be.tar.gz
Do not chdir when running test_xml_etree, and enhance the findfile helper.
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r--Lib/test/test_sax.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py
index 22048e6f7a..df7daf1955 100644
--- a/Lib/test/test_sax.py
+++ b/Lib/test/test_sax.py
@@ -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/"