Unnecessary generator - rewrite as a list comprehension

This commit is contained in:
Hugo 2018-10-02 13:45:48 +03:00
parent 088d04470e
commit 5df41b4399

View File

@ -174,7 +174,7 @@ class PillowTestCase(unittest.TestCase):
if warn_class is None:
self.assertEqual(len(w), 0,
"Expected no warnings, got %s" %
list(v.category for v in w))
[v.category for v in w])
else:
self.assertGreaterEqual(len(w), 1)
found = False