test.py: allow color for some test groups; minor fixes, cleanups
This commit is contained in:
parent
c27c464a87
commit
d2055c93da
9 changed files with 36 additions and 13 deletions
|
|
@ -27,6 +27,10 @@ import os
|
|||
from mmgen.common import *
|
||||
from mmgen.devtools import *
|
||||
|
||||
def strip_ansi_escapes(s):
|
||||
import re
|
||||
return re.sub('\x1b\[[;0-9]+?m','',s)
|
||||
|
||||
ascii_uc = ''.join(map(chr,list(range(65,91)))) # 26 chars
|
||||
ascii_lc = ''.join(map(chr,list(range(97,123)))) # 26 chars
|
||||
lat_accent = ''.join(map(chr,list(range(192,383)))) # 191 chars, L,S
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue