Closed mauritsvanrees closed 9 years ago
I fixed this with commit b2d90031059eefdce96ddab4b8b6efe866a9ee5d.
@lrowe With this commit I reverted your commit 218b41f0cae91a3dd0d7ee8c1b460150c68e2801. All tox tests pass now. Any objections? Note this is on the 1.1.x branch which is used by Plone 4.3 coredev, which should work on Python 2.6.
@mauritsvanrees have you tried breaking a test to see how the error reporting code responds?
Let's see. I'll introduce two extra characters in tests/absolute-prefix/output.html
. Then I test it with tox -e py34
.
With your commit included, I get this:
testAll (diazo.tests.test_diazo.Test-absolute-prefix) ... --- /Users/maurits/community/plone-coredev/4.3/src/diazo/lib/diazo/tests/absolute-prefix/output.html
+++ now
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>Absolutely prefix</title>
+ <title>Absolute prefix</title>
<style type="text/css">
@import "/abs/foo.css";
@import url("/abs/foo.css");
@@ -22,19 +22,6 @@
<script type="text/javascript" src="/foo.js"></script>
<script type="text/javascript" src="http://site.com/foo.js"></script>
</head>
- <body>
- <img src="/abs/foo.jpg" />
- <img src="/abs/foo.jpg" />
- <img src="/foo.jpg" />
- <img src="/foo.jpg" />
- <img src="http://site.com/foo.jpg" />
- <input type="submit" src="/abs/foo.jpg" />
- <input type="submit" src="/abs/foo.jpg" />
- <input type="submit" src="/foo.jpg" />
- <input type="submit" src="/foo.jpg" />
- <input type="submit" src="http://site.com/foo.jpg" />
- <a href="/abs/foo.html">Link</a>
- <a href="#foo">Anchor</a>
- </body>
+ <body><img src="/abs/foo.jpg" /><img src="/abs/foo.jpg" /><img src="/foo.jpg" /><img src="/foo.jpg" /><img src="http://site.com/foo.jpg" /><input type="submit" src="/abs/foo.jpg" /><input type="submit" src="/abs/foo.jpg" /><input type="submit" src="/foo.jpg" /><input type="submit" src="/foo.jpg" /><input type="submit" src="http://site.com/foo.jpg" /><a href="/abs/foo.html">Link</a><a href="#foo">Anchor</a></body>
</html>
FAIL
...
======================================================================
FAIL: testAll (diazo.tests.test_diazo.Test-absolute-prefix)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/maurits/community/plone-coredev/4.3/src/diazo/lib/diazo/tests/test_diazo.py", line 181, in testAll
assert old == new, "output.html has CHANGED"
AssertionError: output.html has CHANGED
----------------------------------------------------------------------
Ran 190 tests in 1.698s
FAILED (failures=1)
With your commit reverted, it is exactly the same (except a few thousands of a second in the time taken for the tests).
So seems fine to me.
I have released 1.1.3 with this (for use on Plone 4.3). And 1.2.2 (for use on Plone 5).
Plone coredev pins diazo to 1.0.6, but in the sources.cfg it is using branch 1.1.x. When you checkout this branch, buildout fails:
Okay, so a few version pins are needed:
With those pins, buildout succeeds. But a few diazo tests fail:
Reverting to 1.1.1 makes the tests pass again, so this is something introduced in 1.1.2.
For now, I will create a 1.0.x branch for good measure. Well... let me make a pull request with 1.1.x checked out first, so Jenkins can have a go at it, just in case the test failures are only on my laptop.
( I am checking if coredev with checkout of all packages works.)