Skip to content

Commit b4a51de

Browse files
authored
Remove unnecessary use of comprehension (#1805)
1 parent b9ce13e commit b4a51de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/openapi/test_openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def setUp(self):
292292
def test_must_iterate_on_paths(self):
293293

294294
expected = {"/foo", "/bar", "/baz"}
295-
actual = set([path for path in self.editor.iter_on_path()])
295+
actual = set(list(self.editor.iter_on_path()))
296296

297297
self.assertEqual(expected, actual)
298298

tests/swagger/test_swagger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def setUp(self):
302302
def test_must_iterate_on_paths(self):
303303

304304
expected = {"/foo", "/bar", "/baz"}
305-
actual = set([path for path in self.editor.iter_on_path()])
305+
actual = set(list(self.editor.iter_on_path()))
306306

307307
self.assertEqual(expected, actual)
308308

0 commit comments

Comments
 (0)