[Debian-med-packaging] Bug#811002: Please help tracking down this issue in test suite [Was: Bug#811002: python-ruffus: FTBFS: sre_constants.error: unbalanced parenthesis at position 2]
Andreas Tille
tille at debian.org
Fri Jan 15 11:50:42 UTC 2016
Hi Dmitry,
On Fri, Jan 15, 2016 at 12:56:50PM +0300, Dmitry Shachnev wrote:
>
> Now you are getting an error with Python 3.4 which doesn't have this change :)
This is what I suspected.
> How about something like this?
>
> self.assertEqual(e.args[0], 'Dummy Task')
> self.assertIn("test1: regular expression regex('.*)') is malformed\n[sre_constants.error: (unbalanced parenthesis", e.args[1])
Thanks - this works nicely. Patch commited to Git.
Before I upload I would like to ask for some proper advise how to
deal with
privacy-breach-uses-embedded-file ... You may use libjs-mathjax package.
lintian errors. I have done this in d/rules by
find debian/$(docpkg)/usr/share/doc/$(docpkg)/html -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
which is not reliable since probably due to some change in sphinx the
expression has changed. I wonder whether I could elegantly patch the
file doc/conf.py which has:
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
Is there anything I could do here to use local mathjax from beginning
instead of patching the resulting docs afterwards?
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list