~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_command.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-22 03:48:48 UTC
  • mfrom: (2029.1.5 python25)
  • Revision ID: pqm@pqm.ubuntu.com-20060922034848-49c18a6d819733bc
(marien,mbp) python2.5 and elementtree fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
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