mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user