~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/doc_generate/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2010-12-14 23:14:44 UTC
  • mfrom: (5569 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5570.
  • Revision ID: andrew.bennetts@canonical.com-20101214231444-uubf7zjbg8q92ocs
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
    _test_needs_features = [features.sphinx]
54
54
 
 
55
    def sphinx_version(self):
 
56
        # Convert to a tuple to avoid traps in string comparison
 
57
        # ( '1.12' < '1.6' but (1, 12) > (1, 6) )
 
58
        return tuple(map(int, features.sphinx.module.__version__.split('.')))
 
59
 
55
60
    def make_sphinx(self):
56
61
        out = tests.StringIOWrapper()
57
62
        err = tests.StringIOWrapper()