~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_utextwrap.py

  • Committer: Ross Lagerwall
  • Date: 2012-08-07 06:32:51 UTC
  • mto: (6437.63.5 2.5)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: rosslagerwall@gmail.com-20120807063251-x9p03ghg2ws8oqjc
Add bzrlib/locale to .bzrignore

bzrlib/locale is generated with ./setup.py build_mo which is in turn called
by ./setup.py build

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
 
172
172
 
173
173
    def setup_both(testcase, base_class, reused_class):
 
174
 
 
175
        if (features.sphinx.available()):
 
176
            # Until https://bitbucket.org/birkenfeld/sphinx/issue/706 is fixed,
 
177
            # we can't run these tests when sphinx <= 1.0.1 as it breaks
 
178
            # textwrap.TextWrapper.wordsep_re
 
179
            version = tuple(map(int,
 
180
                                features.sphinx.module.__version__.split('.')))
 
181
            if version <= (1, 0, 7):
 
182
                raise tests.TestSkipped(
 
183
                    'sphinx textwrap monkeypatch breaks utextwrap')
174
184
        super(base_class, testcase).setUp()
175
185
        override_textwrap_symbols(testcase)
176
186
        reused_class.setUp(testcase)