/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_command.py

  • Committer: Andrew Bennetts
  • Date: 2006-10-20 04:02:48 UTC
  • mfrom: (2091 +trunk)
  • mto: (2018.5.1 split-smart)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20061020040248-80ca63c7e0a13298
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005 by Canonical Ltd
 
1
# Copyright (C) 2004, 2005 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
21
21
    errors,
22
22
    )
23
23
from bzrlib.commands import display_command
24
 
from bzrlib.tests import TestCase
 
24
from bzrlib.tests import TestCase, TestSkipped
25
25
 
26
26
 
27
27
class TestCommands(TestCase):
49
49
    def test_unicode_option(self):
50
50
        # This error is actually thrown by optparse, when it
51
51
        # can't find the given option
 
52
        import optparse
 
53
        if optparse.__version__ == "1.5.3":
 
54
            raise TestSkipped("optparse 1.5.3 can't handle unicode options")
52
55
        self.assertRaises(errors.BzrCommandError,
53
56
                          commands.run_bzr, ['log', u'--option\xb5'])
54
57