~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2011-05-17 21:49:18 UTC
  • mfrom: (5743.12.8 config-options)
  • mto: This revision was merged to the branch mainline in revision 5945.
  • Revision ID: v.ladeuil+lp@free.fr-20110517214918-9w7osyp0i8if0kk0
Merge config-options into config-editor-option

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