[PKG-Openstack-devel] Bug#871313: sphinxcontrib-programoutput: FTBFS with Sphinx 1.6: tests failures

Dmitry Shachnev mitya57 at debian.org
Mon Aug 7 15:26:03 UTC 2017


Source: sphinxcontrib-programoutput
Version: 0.8-5
Severity: important
Tags: patch
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx1.6

Dear Maintainer,

sphinxcontrib-programoutput fails to build with Sphinx 1.6, currently
available in experimental:

  =================================== FAILURES ===================================
  _________________________ test_unexpected_return_code __________________________

  app = <sphinx.application.Sphinx object at 0x7fae4aeeeb90>

      @pytest.mark.with_content("""\
      .. program-output:: python -c 'import sys; sys.exit(1)'""")
      def test_unexpected_return_code(app):
          with pytest.raises(SphinxWarning) as excinfo:
              app.build()
          exc_message = 'WARNING: Unexpected return code 1 from command {0!r}\n'.format(
              "python -c 'import sys; sys.exit(1)'")
  >       assert str(excinfo.value) == exc_message
  E       assert 'Unexpected r...ys.exit(1)\'"' == 'WARNING: Unex...s.exit(1)\'"\n'
  E         - Unexpected return code 1 from command u"python -c \'import sys; sys.exit(1)\'"
  E         ?                                                   -                        -
  E         + WARNING: Unexpected return code 1 from command u"python -c 'import sys; sys.exit(1)'"
  E         ? +++++++++                                                                            +

  tests/test_directive.py:247: AssertionError

A patch to fix this issue is attached.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-failures-with-sphinx-1.6.patch
Type: text/x-diff
Size: 1131 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20170807/af0a6461/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20170807/af0a6461/attachment.sig>


More information about the Openstack-devel mailing list