[patch] fix testsuite under 'python -O'

Martin Pool mbp at canonical.com
Thu Nov 2 07:02:28 GMT 2006


On 31 Oct 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> The -O stuff is listed as a bug:
> https://launchpad.net/products/bzr/+bug/45205
> 
> It is something I wanted to fix, but you seem to have beaten me to it.
> 
> Actually, what I would like to do is just add this line:
> 
> === modified file 'Makefile'
> --- Makefile    2006-10-16 06:38:32 +0000
> +++ Makefile    2006-10-31 16:12:19 +0000
> @@ -4,6 +4,7 @@
>         python -Werror ./bzr selftest -v $(tests)
>         @echo "Running all tests with no locale."
>         LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
> +       python -O -Werror ./bzr selftest -v $(tests)
> 
>  check-msgeditor:
>         ./bzr --no-plugins selftest -v msgeditor
> 
> I've mentioned it in the past, and Robert was happy with it. It doesn't
> add a huge overhead, and means that pqm will ensure our code base stays
> -O clean.

OK, done.

-- 
Martin




More information about the bazaar mailing list