summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-07-17 16:18:33 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2015-07-17 16:18:33 +0300
commitdd481f6030fe140fa3e321cfe08a38f53e549aed (patch)
tree9b2455d14ee2aec0ad455f1c5c2eb22f4d2a7ad5 /tests
parenteaf9325ddcff786f3fcd5b9047327ef6e397e778 (diff)
downloadwikitrans-dd481f6030fe140fa3e321cfe08a38f53e549aed.tar.gz
wikitrans-dd481f6030fe140fa3e321cfe08a38f53e549aed.tar.bz2
Bugfixes
* WikiTrans/wikimarkup.py (tokread): Fix recognition of <nowiki> blocks and unhandled tags. * tests/test.py: Minor fix.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test.py b/tests/test.py
index 9c72832..cde21bc 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -17,7 +17,7 @@
from __future__ import print_function
import unittest
-import wiki2html
+from WikiTrans.wiki2html import HtmlWikiMarkup, HtmlWiktionaryMarkup
class TestMarkupParserBasic (unittest.TestCase):
@@ -95,7 +95,7 @@ class TestMarkupParserBasic (unittest.TestCase):
fh = open(name_out)
buf = ''.join(fh.readlines()).strip()
fh.close()
- hwm = wiki2html.HtmlWiktionaryMarkup(filename=name_in, lang="pl")
+ hwm = HtmlWiktionaryMarkup(filename=name_in, lang="pl")
hwm.parse()
if str(hwm).strip() == buf:

Return to:

Send suggestions and report system problems to the System administrator.