test/exhaustive: Replace map by list comprehension

Fixes #331.

https://github.com/checkpoint-restore/criu/issues/331
Signed-off-by: Harshavardhan Unnibhavi <hvubfoss@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Harshavardhan Unnibhavi 2019-04-07 14:29:53 +05:30 committed by Andrei Vagin
parent 4eb2df5ae6
commit 9c9d151693

View file

@ -415,7 +415,7 @@ class state:
# one in which. At the same time really different states
# shouldn't map to the same string.
def describe(self):
sks = map(lambda x: x.describe(self), self.sockets)
sks = [x.describe(self) for x in self.sockets]
sks = sorted(sks)
return '_'.join(sks)