7 if sys.version_info >= (3,):
8 sys.stderr.write("The doctests have not been ported to python 3. Skipping...\n")
13 def __init__(self, tables):
16 def braille(self, txt):
17 return louis.translateString(self.tables, txt)
19 def cursor(self, txt, cursorPos):
20 return louis.translate(self.tables, txt,
22 mode=louis.compbrlAtCursor)[0:4:3]
26 for test in glob.iglob('doctests/*_test.txt'):
27 failure_count, ignore = doctest.testfile(
28 test, report=True, encoding='utf-8',
29 extraglobs={'TestHelper': TestHelper})