Rev 6523: Fix test failures caued by a forgotten ``tests.features.sphinx`` reference in file:///home/vila/src/bzr/bugs/utextwrap-sphinx/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue Apr 17 12:18:27 UTC 2012


At file:///home/vila/src/bzr/bugs/utextwrap-sphinx/

------------------------------------------------------------
revno: 6523
revision-id: v.ladeuil+lp at free.fr-20120417121827-nmhw3ax9fefi0r44
parent: pqm at pqm.ubuntu.com-20120416113553-1vnossk7c384rp4q
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: utextwrap-sphinx
timestamp: Tue 2012-04-17 14:18:27 +0200
message:
  Fix test failures caued by a forgotten ``tests.features.sphinx`` reference
-------------- next part --------------
=== modified file 'bzrlib/tests/test_utextwrap.py'
--- a/bzrlib/tests/test_utextwrap.py	2011-05-28 06:44:01 +0000
+++ b/bzrlib/tests/test_utextwrap.py	2012-04-17 12:18:27 +0000
@@ -171,16 +171,6 @@
 
 
     def setup_both(testcase, base_class, reused_class):
-
-        if (features.sphinx.available()):
-            # Until https://bitbucket.org/birkenfeld/sphinx/issue/706 is fixed,
-            # we can't run these tests when sphinx <= 1.0.1 as it breaks
-            # textwrap.TextWrapper.wordsep_re
-            version = tuple(map(int,
-                                features.sphinx.module.__version__.split('.')))
-            if version <= (1, 0, 7):
-                raise tests.TestSkipped(
-                    'sphinx textwrap monkeypatch breaks utextwrap')
         super(base_class, testcase).setUp()
         override_textwrap_symbols(testcase)
         reused_class.setUp(testcase)

=== modified file 'doc/en/release-notes/bzr-2.6.txt'
--- a/doc/en/release-notes/bzr-2.6.txt	2012-04-16 11:08:11 +0000
+++ b/doc/en/release-notes/bzr-2.6.txt	2012-04-17 12:18:27 +0000
@@ -67,10 +67,9 @@
 Testing
 *******
 
-.. Fixes and changes that are only relevant to bzr's test framework and 
-   suite.  This can include new facilities for writing tests, fixes to 
-   spurious test failures and changes to the way things should be tested.
-
+* Fix test failures by removing a remaining reference to ``features.sphinx``
+  which isn't needed anymore since we don't test the texinfo sphinx builder
+  anymore either. (Vincent Ladeuil)
 
 bzr 2.6b1
 #########



More information about the bazaar-commits mailing list