[Python-checkins] python/dist/src/Lib/test test_normalization.py,1.5,1.6
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 22 Apr 2003 11:15:09 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv24728
Modified Files:
test_normalization.py
Log Message:
Do a little more searching for the data file for the test: this allows
using a build directory just inside the source directory and saving
just one copy of the test data in the source tree, rather than having
a copy in each build directory.
Index: test_normalization.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_normalization.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_normalization.py 24 Nov 2002 19:19:09 -0000 1.5
--- test_normalization.py 22 Apr 2003 18:15:05 -0000 1.6
***************
*** 5,9 ****
TESTDATAFILE = "NormalizationTest.txt"
! skip_expected = not os.path.exists(TESTDATAFILE)
class RangeError:
--- 5,20 ----
TESTDATAFILE = "NormalizationTest.txt"
!
! # This search allows using a build directory just inside the source
! # directory, and saving just one copy of the test data in the source
! # tree, rather than having a copy in each build directory.
! # There might be a better way to do this.
!
! for path in [os.path.curdir, os.path.pardir]:
! fn = os.path.join(path, TESTDATAFILE)
! skip_expected = not os.path.exists(fn)
! if not skip_expected:
! TESTDATAFILE = fn
! break
class RangeError: