Discussion:
[Docutils-users] Test suite failure
Doug Sands
2013-09-19 14:38:08 UTC
Permalink
Hi --
I believe I properly followed the instructions provided, and assuming I did so, then I'm thinking you'll want to see the attached file with the output from running alltests.py from the test3 directory. There are 5 failures. I was in a cmd window with admin privileges.
I'm wondering: given these test failures, can I, should I, use docutils?

This is the version of docutils gotten by running quicktest --version:


quicktest.py (Docutils 0.11 [release])

Python is ActiveState's 3.2.2 release.

Here's a picture of my basic configuration:

If you need more information, please let me know.

Best Regards,

Doug Sands
CIO
Director of PIDB Development
Pinogy Corp.
Office: 877-360-7381 x 1200
Mobile: 561-350-0817
Guenter Milde
2013-09-20 06:48:13 UTC
Permalink
Dear Doug,
Post by Doug Sands
I believe I properly followed the instructions provided, and
assuming I did so, then I'm thinking you'll want to see the attached
file with the output from running alltests.py from the test3 directory.
There are 5 failures. I was in a cmd window with admin privileges. I'm
wondering: given these test failures, can I, should I, use docutils?
This depends on how serious the failures are and what you want to do with
it.
Post by Doug Sands
quicktest.py (Docutils 0.11 [release])
Python is ActiveState's 3.2.2 release.
Maybe you can improve the mileage by using it with another Python
release/version or another configuration regarding how paths are printed.
???

...
Post by Doug Sands
Testing Docutils 0.11 [release] with Python 3.2.2 on 2013-09-19 at 10:22:47
Working directory: C:\Users\Public\Installs\Software Development\DocUtils\docutils-0.11\test3
Docutils package: C:\Users\Public\Installs\Software Development\DocUtils\docutils-0.11\build\lib\docutils
................................................F.............................................................................................................................................................................................................F............................................................................................................................................................................................................................
...
Post by Doug Sands
-: expected
+: output
...
Post by Doug Sands
stylesheet = """\
- <link rel="stylesheet" href="/test.css" type="text/css" />"""
+ <link rel="stylesheet" href="C:/test.css" type="text/css" />"""
? ++
It seems your Python version prepends a (Win)DOS drive letter.

I don't know whether this can be customized and I cannot test (because I am
running Linux) but AFAIK, the "normal" Python on Windows passes the tests
fine.

I suppose documents will work if

* you embedd the CSS stylesheet, or
* you use them only on your local (or another) Windows machine.

and fail if

* you upload them to a POSIX-compliant server without embedding the
stylesheet.

but may be it is only a false positive and everything is fine.

...
Post by Doug Sands
======================================================================
FAIL: test_find_file_in_dirs (test_utils.HelperFunctionsTests)
----------------------------------------------------------------------
File "C:\Users\Public\Installs\Software Development\DocUtils\docutils-0.11\test3\test_utils.py", line 295, in test_find_file_in_dirs
'../HISTORY.txt')
AssertionError: '..\\HISTORY.txt' != '../HISTORY.txt'
- ..\HISTORY.txt
? ^
+ ../HISTORY.txt
? ^
Again, this seems to be a false positive because of differnet path syntax.

Günter

Loading...