From: Ronald Oussoren Date: Tue, 19 Feb 2008 15:29:40 +0000 (+0000) Subject: A quick fix that removes a spurious unittest failure when users X-Git-Tag: v2.5.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d273b059c7d48bac95ed4822c853bf4a0289ab5;p=python A quick fix that removes a spurious unittest failure when users upgrade their python2.5 install and then run Python's test suite. This is needed because one of the test files for the decimal module changed it name (see issue 2114) and OSX doesn't feature a full package manager. --- diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 7ffb065897..ae394bb722 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -733,6 +733,16 @@ def buildPython(): os.symlink(os.path.join(to_framework, fn), os.path.join(usr_local_bin, fn)) + # A quick fix that removes a spurious unittest failure when users + # upgrade their python2.5 install and then run Python's test suite. + # This is needed because one of the test files for the decimal module + # changed it name (see issue 2114). + test_dir = os.path.join(rootDir, 'Library', 'Frameworks', + 'Python.framework', 'Versions', version, 'lib', + 'python%s'%(version,), 'test', 'decimaltestdata') + data = open(os.path.join(test_dir, 'reduce.decTest'), 'r').read() + open(os.path.join(test_dir, 'normalize.decTest'), 'w').write(data) + os.chdir(curdir)