Fabien wrote:
Hi,when I run tests i got these messages: $ python tests/testasciidoc.py update Traceback (most recent call last): File "tests/testasciidoc.py", line 407, in ? tests.update(number, backend, force=force) File "tests/testasciidoc.py", line 318, in update test.update(backend, force=force) File "tests/testasciidoc.py", line 205, in update self.update_expected(backend) File "tests/testasciidoc.py", line 184, in update_expected lines = self.generate_expected(backend) File "tests/testasciidoc.py", line 172, in generate_expected asciidoc = asciidocapi.AsciiDocAPI() File "/usr/local/asciidoc-8.5.3/tests/asciidocapi.py", line 189, in __init__ if Version(asciidoc.VERSION) < Version(MIN_ASCIIDOC_VERSION): AttributeError: 'module' object has no attribute 'VERSION'
I can't think what could be causing this, what it's saying is that asciidoc.py has no VERSION global variable, but all versions of asciidoc.py declare VERSION right at the start of the file. It gets printed when you use the --version option:
$ python asciidoc.py --version asciidoc 8.5.3 Cheers, Stuart
when i try $ python tests/testasciidoc.py run 1: Test cases SOURCE: asciidoc: tests/data/testcases.txt SKIPPED: html4: tests/data/testcases-html4.html SKIPPED: xhtml11: tests/data/testcases-xhtml11.html SKIPPED: docbook: tests/data/testcases-docbook.xml SKIPPED: wordpress: tests/data/testcases-wordpress.html 2: Filters SOURCE: asciidoc: tests/data/filters-test.txt SKIPPED: html4: tests/data/filters-test-html4.html SKIPPED: xhtml11: tests/data/filters-test-xhtml11.html SKIPPED: docbook: tests/data/filters-test-docbook.xml SKIPPED: wordpress: tests/data/filters-test-wordpress.html 3: Tables SOURCE: asciidoc: examples/website/newtables.txt SKIPPED: html4: tests/data/newtables-html4.html SKIPPED: xhtml11: tests/data/newtables-xhtml11.html SKIPPED: docbook: tests/data/newtables-docbook.xml SKIPPED: wordpress: tests/data/newtables-wordpress.html 4: Source highlighter SOURCE: asciidoc: doc/source-highlight-filter.txt SKIPPED: html4: tests/data/source-highlight-filter-html4.html SKIPPED: xhtml11: tests/data/source-highlight-filter-xhtml11.html SKIPPED: docbook: tests/data/source-highlight-filter-docbook.xml SKIPPED: wordpress: tests/data/source-highlight-filter-wordpress.html 5: Example article SOURCE: asciidoc: doc/article.txt SKIPPED: html4: tests/data/article-html4.html SKIPPED: xhtml11: tests/data/article-xhtml11.html SKIPPED: docbook: tests/data/article-docbook.xml SKIPPED: wordpress: tests/data/article-wordpress.html ... ... asciidoc 8.5.3 is the only one in my system (linux), i got no other asciidoc installed. thank you for your help.
-- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
