[Python-checkins] r60903 - python/branches/release25-maint/Mac/BuildScript/build-installer.py

ronald.oussoren python-checkins at python.org
Tue Feb 19 16:29:41 CET 2008


Author: ronald.oussoren
Date: Tue Feb 19 16:29:40 2008
New Revision: 60903

Modified:
   python/branches/release25-maint/Mac/BuildScript/build-installer.py
Log:
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.


Modified: python/branches/release25-maint/Mac/BuildScript/build-installer.py
==============================================================================
--- python/branches/release25-maint/Mac/BuildScript/build-installer.py	(original)
+++ python/branches/release25-maint/Mac/BuildScript/build-installer.py	Tue Feb 19 16:29:40 2008
@@ -733,6 +733,16 @@
         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)
 
 


More information about the Python-checkins mailing list