Skip to content

Commit afb69f5

Browse files
committed
Fixed bad regex assert in Python 3 flavor of AboutGenerators
1 parent dd50b96 commit afb69f5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python 3/koans/about_generators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def test_before_sending_a_value_to_a_generator_next_must_be_called(self):
114114
try:
115115
generator.send(1+2)
116116
except TypeError as ex:
117-
self.assertMatch(__, ex[0])
117+
ex2 = ex
118+
119+
self.assertRegexpMatches(ex2.args[0], __)
118120

119121
# ------------------------------------------------------------------
120122

0 commit comments

Comments
 (0)