We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47fceb5 commit 777e30aCopy full SHA for 777e30a
1 file changed
effect/test_do.py
@@ -161,8 +161,13 @@ def f():
161
yield Effect(Constant('foo'))
162
163
eff = f()
164
- with raises(StopIteration):
165
- perf(eff)
+ if sys.version_info > (3, 7):
+ # In Python 3.7, generators straight up aren't allowed to raise StopIteration any more
166
+ with raises(RuntimeError):
167
+ perf(eff)
168
+ else:
169
+ with raises(StopIteration):
170
171
172
173
@mark.skipif(not six.PY3, reason="Testing a Py3-specific feature")
0 commit comments