mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Unnecessary generator - rewrite as a list comprehension
This commit is contained in:
parent
088d04470e
commit
5df41b4399
|
@ -174,7 +174,7 @@ class PillowTestCase(unittest.TestCase):
|
||||||
if warn_class is None:
|
if warn_class is None:
|
||||||
self.assertEqual(len(w), 0,
|
self.assertEqual(len(w), 0,
|
||||||
"Expected no warnings, got %s" %
|
"Expected no warnings, got %s" %
|
||||||
list(v.category for v in w))
|
[v.category for v in w])
|
||||||
else:
|
else:
|
||||||
self.assertGreaterEqual(len(w), 1)
|
self.assertGreaterEqual(len(w), 1)
|
||||||
found = False
|
found = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user