Merge lp:~vila/bzr/osx-regressions into lp:~bzr/bzr/trunk-old

Proposed by Vincent Ladeuil
Status: Superseded
Proposed branch: lp:~vila/bzr/osx-regressions
Merge into: lp:~bzr/bzr/trunk-old
Diff against target: 30 lines
To merge this branch: bzr merge lp:~vila/bzr/osx-regressions
Reviewer Review Type Date Requested Status
bzr-core Pending
Review via email: mp+7094@code.launchpad.net

This proposal has been superseded by a proposal from 2009-06-05.

To post a comment you must log in.
Revision history for this message
Vincent Ladeuil (vila) wrote :

This patch fixes some test failures revealed on OSX 10.5 with python 2.6.

It seems that OSX changed the way it creates temp directories and that they can
now contain funny characters (including %), that's for the note() fix.

It also seems that '+' can appear repeatedly in these paths, which revealed
the wrong order used for the assertNotContainsRe() call (well known trap :-/).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bzrlib/tests/__init__.py'
--- bzrlib/tests/__init__.py 2009-06-04 21:25:46 +0000
+++ bzrlib/tests/__init__.py 2009-06-05 08:35:08 +0000
@@ -728,9 +728,11 @@
728 def finished(self):728 def finished(self):
729 """See progress.ProgressBar.finished()."""729 """See progress.ProgressBar.finished()."""
730730
731 def note(self, fmt_string, *args, **kwargs):731 def note(self, fmt_string, *args):
732 """See progress.ProgressBar.note()."""732 """See progress.ProgressBar.note()."""
733 self.stdout.write((fmt_string + "\n") % args)733 if args:
734 fmt_string = fmt_string % args
735 self.stdout.write(fmt_string + "\n")
734736
735 def progress_bar(self):737 def progress_bar(self):
736 return self738 return self
737739
=== modified file 'bzrlib/tests/test_plugins.py'
--- bzrlib/tests/test_plugins.py 2009-03-24 01:53:42 +0000
+++ bzrlib/tests/test_plugins.py 2009-06-05 08:35:08 +0000
@@ -633,7 +633,7 @@
633 path = plugin.get_standard_plugins_path()633 path = plugin.get_standard_plugins_path()
634 self.assertEqual(plugin.get_default_plugin_path(), path[0])634 self.assertEqual(plugin.get_default_plugin_path(), path[0])
635 for directory in path:635 for directory in path:
636 self.assertNotContainsRe(r'\\/$', directory)636 self.assertNotContainsRe(directory, r'\\/$')
637 try:637 try:
638 from distutils.sysconfig import get_python_lib638 from distutils.sysconfig import get_python_lib
639 except ImportError:639 except ImportError: