[Python-checkins] python/dist/src/Lib/test
test_multibytecodec_support.py, 1.2, 1.3
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Sun Jun 6 16:09:52 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10237/Lib/test
Modified Files:
test_multibytecodec_support.py
Log Message:
Look for the multibyte codec map files in the parent directory too
This is similar to test_normalization, so that many source trees
can reference the same test file(s).
Index: test_multibytecodec_support.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_multibytecodec_support.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_multibytecodec_support.py 18 Jan 2004 20:29:55 -0000 1.2
--- test_multibytecodec_support.py 6 Jun 2004 20:09:49 -0000 1.3
***************
*** 165,170 ****
unittest.TestCase.__init__(self, *args, **kw)
if not os.path.exists(self.mapfilename):
! raise test_support.TestSkipped('%s not found, download from %s' %
! (self.mapfilename, self.mapfileurl))
def test_mapping_file(self):
--- 165,175 ----
unittest.TestCase.__init__(self, *args, **kw)
if not os.path.exists(self.mapfilename):
! parent = os.path.join(os.pardir, self.mapfilename)
! if not os.path.exists(parent):
! format = '%s not found, download from %s'
! raise test_support.TestSkipped(format %
! (self.mapfilename, self.mapfileurl))
! else:
! self.mapfilename = parent
def test_mapping_file(self):
More information about the Python-checkins
mailing list