/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: Aaron Bentley
  • Date: 2006-11-17 04:06:03 UTC
  • mfrom: (2139 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2162.
  • Revision ID: aaron.bentley@utoronto.ca-20061117040603-pgebxndswvwk26tt
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