https://bugs.gentoo.org/723468#c5 By Anon Emuss ---- Fix minor HTML changes in tests Newer versions of sphinx now put

tags around various elements. Update the test_lists and CustomExtensionTests tests to expect that. Also do not expect a class="first" for the Contents in the CustomExtensionTests. Tested and appears to work with sphinx-2.4.4 and sphinx-3.2.1. diff --git a/tests/test_sphinx.py b/tests/test_sphinx.py index 06078b1..8f4acb2 100644 --- a/tests/test_sphinx.py +++ b/tests/test_sphinx.py @@ -142,17 +142,17 @@ class GenericTests(SphinxIntegrationTests): output = self.read_file('index.html') self.assertIn( ('

'), output ) self.assertIn( ('
    \n' - '
  1. Item 1
  2. \n' - '
  3. Item 2
  4. \n' - '
  5. Item 3
  6. \n' + '
  7. Item 1

  8. \n' + '
  9. Item 2

  10. \n' + '
  11. Item 3

  12. \n' '
'), output ) @@ -207,16 +207,17 @@ class CustomExtensionTests(SphinxIntegrationTests): def test_integration(self): output = self.read_file('index.html') self.assertIn('abc', output) - self.assertIn('', output) + self.assertIn('', output) + self.assertIn('', output) self.assertIn('
data

abc

data

', output) self.assertIn( ('
\n' - '

Contents

\n' + '

Contents

\n' '