/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/doc_generate/__init__.py

Merge bzr.dev, update to use new hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010 Canonical Ltd
 
1
# Copyright (C) 2010, 2011 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
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()