Martin Pool wrote:
> Martin Pool has proposed merging lp:~mbp/bzr/340394-encoding-option into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
>
> This is probably a bit out of date with other test changes, but I'll put it up so bialix can see it: it adds an output_encoding config option that controls how we encode non-file-content output. My next step was going to be to add a way to set this on the command line for the duration of a process.
>
^- This confused me at first, but I see that it is "tests.test_fixtures"
versus "tests.fixtures". Probably fine overall, just mentioning the
confusion.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
> Martin Pool has proposed merging lp:~mbp/bzr/340394-encoding-option into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
>
> This is probably a bit out of date with other test changes, but I'll put it up so bialix can see it: it adds an output_encoding config option that controls how we encode non-file-content output. My next step was going to be to add a way to set this on the command line for the duration of a process.
>
=== modified file 'bzrlib/ tests/_ _init__ .py' tests/_ _init__ .py 2010-06-08 01:42:50 +0000 tests/_ _init__ .py 2010-06-18 09:45:47 +0000
'bzrlib. tests.test_ export' ,
'bzrlib. tests.test_ extract' ,
'bzrlib. tests.test_ fetch', tests.test_ fixtures' ,
'bzrlib. tests.test_ fifo_cache' ,
'bzrlib. tests.test_ filters' ,
'bzrlib. tests.test_ ftp_transport' ,
'bzrlib. option' ,
'bzrlib. symbol_ versioning' ,
'bzrlib. tests', tests.fixtures' ,
'bzrlib. timestamp' ,
'bzrlib. version_ info_formats. format_ custom' ,
- --- bzrlib/
+++ bzrlib/
@@ -3704,6 +3704,7 @@
+ 'bzrlib.
@@ -3839,6 +3840,7 @@
+ 'bzrlib.
]
^- This confused me at first, but I see that it is "tests. test_fixtures"
versus "tests.fixtures". Probably fine overall, just mentioning the
confusion.
=== added file 'bzrlib/ tests/test_ fixtures. py' tests/test_ fixtures. py 1970-01-01 00:00:00 +0000 tests/test_ fixtures. py 2010-06-18 09:45:47 +0000
- --- bzrlib/
+++ bzrlib/
@@ -0,0 +1,28 @@
+# Copyright (C) 2005-2010 Canonical Ltd
^- I'm pretty sure this isn't accurate :).
+class TestUIConfigura tion(tests. TestCaseWithTra nsport) : encoding_ configuration( self): generate_ unicode_ encodings( ).next( ) GlobalConfig( ).set_user_ option( 'output_ encoding' , tory(stdin= None, tests.StringIOW rapper( ), tests.StringIOW rapper( )) output_ stream( ) ls(os.encoding, enc)
+
+ def test_output_
+ enc = fixtures.
+ config.
+ enc)
+ ui = tests.TestUIFac
+ stdout=
+ stderr=
+ os = ui.make_
+ self.assertEqua
+
+
^- this seems like it would want to be a permutation test across all the unicode_ encodings( )' rather than a single test of the first one.
'generate_
Conceptually I'm fine with this. I think it is a reasonable way to
handle stuff like "I want utf-8 always, even though my system doesn't
think so."
merge: approve
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
bgo4ACgkQJdeBCY SNAANGdQCghkA48 qKjGt9reS13FkE8 e2bK dcKauNFwhfss15X Tn
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
ydAAoJZYizvZDCt
=4eZG
-----END PGP SIGNATURE-----