summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_ipalib/test_errors.py')
-rw-r--r--ipatests/test_ipalib/test_errors.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipatests/test_ipalib/test_errors.py b/ipatests/test_ipalib/test_errors.py
index 938b9fcec..dfe60f283 100644
--- a/ipatests/test_ipalib/test_errors.py
+++ b/ipatests/test_ipalib/test_errors.py
@@ -329,8 +329,7 @@ class test_PublicError(PublicExceptionTester):
# this expression checks if each word of instructions
# exists in a string as a separate line, with right order
regexp = re.compile('(?ims).*' +
- ''.join(map(lambda x: '(%s).*' % (x),
- instructions)) +
+ ''.join('(%s).*' % (x) for x in instructions) +
'$')
inst = subclass(instructions=instructions, **kw)
assert inst.format is subclass.format