tests: Allow unicode character ä in the task description

This commit is contained in:
Tomas Babej 2015-08-10 02:30:12 +02:00
parent 24e43fecd1
commit ec00c961b4

View file

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import os
import re
import subprocess
@ -152,7 +154,9 @@ class IntegrationTest(object):
# Helper function that fills in {uuid} placeholders with correct UUIDs
def fill_uuid(self, line):
# Tasks in testing can have only alphanumerical descriptions
match = re.match(r'\s*\* \[.\] (?P<desc>[a-zA-Z0-9 ]*)(?<!\s)', line)
match = re.match(ur'\s*\* \[.\] (?P<desc>[äa-zA-Z0-9 ]*)(?<!\s)', line,
flags=re.UNICODE)
if not match:
return line