Skip to content

Commit 66fa621

Browse files
kjcmpirnat
authored andcommitted
test_before_sending_a_value_to_a_generator_next_must_be_called
Python 3's whitespace and general structure changed to match Python 2 version's.
1 parent b1c7361 commit 66fa621

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

python3/koans/about_generators.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,9 @@ def test_before_sending_a_value_to_a_generator_next_must_be_called(self):
112112
generator = self.coroutine()
113113

114114
try:
115-
generator.send(1+2)
115+
generator.send(1 + 2)
116116
except TypeError as ex:
117-
ex2 = ex
118-
119-
self.assertRegex(ex2.args[0], __)
117+
self.assertRegex(ex.args[0], __)
120118

121119
# ------------------------------------------------------------------
122120

0 commit comments

Comments
 (0)