~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: INADA Naoki
  • Date: 2011-05-17 00:45:09 UTC
  • mfrom: (5875 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5891.
  • Revision ID: songofacandy@gmail.com-20110517004509-q58negjbdjh7t6u1
mergeĀ fromĀ lp:bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
    def test_nonascii_optparse(self):
69
69
        """Reasonable error raised when non-ascii in option name"""
70
 
        if sys.version_info < (2,5):
71
 
            error_re = 'no such option'
72
 
        else:
73
 
            error_re = 'Only ASCII permitted in option names'
 
70
        error_re = 'Only ASCII permitted in option names'
74
71
        out = self.run_bzr_error([error_re], ['st',u'-\xe4'])
75
72
 
76
73