From: Thomas Heller Date: Wed, 11 Jul 2007 14:49:26 +0000 (+0000) Subject: dict.keys() returns an iterable, convert it into a list. X-Git-Tag: v3.0a1~689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c92159aaea3263ef99ff290c28ba5d71cb89ed9a;p=python dict.keys() returns an iterable, convert it into a list. --- diff --git a/Lib/ctypes/test/__init__.py b/Lib/ctypes/test/__init__.py index 5f7fcc2cae..372c6e8c45 100644 --- a/Lib/ctypes/test/__init__.py +++ b/Lib/ctypes/test/__init__.py @@ -124,7 +124,7 @@ class TestRunner(unittest.TextTestRunner): self.stream.writeln(result.separator2) run = result.testsRun if _unavail: #skipped: - requested = _unavail.keys() + requested = list(_unavail.keys()) requested.sort() self.stream.writeln("Ran %d test%s in %.3fs (%s module%s skipped)" % (run, run != 1 and "s" or "", timeTaken,