zope.pagetemplate 4.0.4 test failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zopeproject |
New
|
Undecided
|
Unassigned |
Bug Description
Not sure if this is the right place to report this, but here goes anyway.
When building the zope.pagetemplate 4.0.4 package for Ubuntu, we have some DEP-8 (a.k.a. autopkgtests) tests which run after the package is built, so it tests the .deb built contents. The tests must pass before the package gets promoted from utopic-proposed to utopic (in the case of 14.10 of course).
In test_htmltests.py, test_3() fails for a very superficial reason - an <img> tag appears to get wrapped in the generated output, leaving the width and height parameters on the next line, where the test expects them to be on the same line as the src attribute. Of course, this has no effect on the actual rendered HTML, but util.check_html() isn't smart enough to know that this is an inconsequential failure. Thus the test fails, blocking promotion.
The fix is dumb and simple; in the expected output file, I simply wrap the attributes to match the generated output. This probably isn't a proper fix, but I include it below for your enjoyment.
In any case, I will include this fix in the utopic 4.0.4-0ubuntu1 version and will keep an eye out for updates to this bug for a better fix.