diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-13 12:41:48 (GMT) |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-13 12:41:48 (GMT) |
| commit | 1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be (patch) | |
| tree | 1803f0b1f84dc7f33d9574d80ccac3bb14445eb8 /Lib/test/test_sax.py | |
| parent | 13ba1a1c6571dad26e3030525556ec4b552b0865 (diff) | |
| download | cpython-1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be.zip cpython-1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be.tar.gz cpython-1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be.tar.bz2 | |
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.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 22048e6..df7daf1 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/" |
