|
From: Waylan L. <wa...@gm...> - 2008-12-08 17:02:19
|
> I am getting one small anomaly in 2.3 & 2.4 with the "uche" test,
> although it appears to only be insignificant whitespace
Figured this one out. I appears that the brand new versions of
ElementTree (newer than what ships with 2.5, 2.6 & 3.0) I installed
for 2.3 & 2.4 is encoding the line break in that test (as `` ``)
while older versions left it as-is (``\n``).
As those linebreaks are insignificant, I am just removing them.
> Hmm, perhaps we should wrap that test
> in a conditional and only run it when those conditions (Pygments and
> version > 3.0) are met.
I've also committed a somewhat hacky patch for this. It occurs to me
that perhaps the tester should be able to do this, but the API is not
so clear. We could pass a list of dependant packages to the
test_directory method. Something like:
tester.test_directory("tests/extensions-x-codehilite", depends=["pygments"])
Then the tester would only run the test if it can successfully import
each package in the list. Perhaps a message should be printed that the
test was skipped and why.
Any thoughts?
--
----
Waylan Limberg
wa...@gm...
|