~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-16 22:42:54 UTC
  • mfrom: (4797.3.21 2.1.0b4-win32-accepted)
  • Revision ID: pqm@pqm.ubuntu.com-20091116224254-fgspnq9xz29z662j
(jam) Lots of win32 test-suite fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    ignores,
26
26
    msgeditor,
27
27
    osutils,
 
28
    tests,
28
29
    )
29
30
from bzrlib.bzrdir import BzrDir
30
31
from bzrlib.tests import (
263
264
        self.run_bzr('commit -m ""', retcode=3)
264
265
 
265
266
    def test_unsupported_encoding_commit_message(self):
 
267
        if sys.platform == 'win32':
 
268
            raise tests.TestNotApplicable('Win32 parses arguments directly'
 
269
                ' as Unicode, so we can\'t pass invalid non-ascii')
266
270
        tree = self.make_branch_and_tree('.')
267
271
        self.build_tree_contents([('foo.c', 'int main() {}')])
268
272
        tree.add('foo.c')
273
277
        if char is None:
274
278
            raise TestSkipped('Cannot find suitable non-ascii character'
275
279
                'for user_encoding (%s)' % osutils.get_user_encoding())
276
 
        # TODO: jam 2009-07-23 This test seems to fail on Windows now. My best
277
 
        #       guess is that the change to use Unicode command lines means
278
 
        #       that we no longer pay any attention to LANG=C when decoding the
279
 
        #       commandline arguments.
280
280
        out,err = self.run_bzr_subprocess('commit -m "%s"' % char,
281
281
                                          retcode=1,
282
282
                                          env_changes={'LANG': 'C'})