[CRIU] [PATCH] test: Replace map by list comprehension

Harshavardhan Unnibhavi hvubfoss at gmail.com
Sun Apr 7 11:59:53 MSK 2019


Fixes #331.

https://github.com/checkpoint-restore/criu/issues/331
Signed-off-by: Harshavardhan Unnibhavi <hvubfoss at gmail.com>
---
 test/exhaustive/unix.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/exhaustive/unix.py b/test/exhaustive/unix.py
index 6b1ed85d..41053bd0 100755
--- a/test/exhaustive/unix.py
+++ b/test/exhaustive/unix.py
@@ -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)
 
-- 
2.17.1



More information about the CRIU mailing list