Skip to content

Commit 24c65e1

Browse files
kjcmpirnat
authored andcommitted
about_generators.py: Removed redundant list() calls.
1 parent d6a00e7 commit 24c65e1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

python2/koans/about_generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def test_generator_expressions_are_a_one_shot_deal(self):
4343
attempt1 = list(dynamite)
4444
attempt2 = list(dynamite)
4545

46-
self.assertEqual(__, list(attempt1))
47-
self.assertEqual(__, list(attempt2))
46+
self.assertEqual(__, attempt1)
47+
self.assertEqual(__, attempt2)
4848

4949
# ------------------------------------------------------------------
5050

python3/koans/about_generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def test_generator_expressions_are_a_one_shot_deal(self):
4444
attempt1 = list(dynamite)
4545
attempt2 = list(dynamite)
4646

47-
self.assertEqual(__, list(attempt1))
48-
self.assertEqual(__, list(attempt2))
47+
self.assertEqual(__, attempt1)
48+
self.assertEqual(__, attempt2)
4949

5050
# ------------------------------------------------------------------
5151

0 commit comments

Comments
 (0)