Skip to content

Commit d6b4f0c

Browse files
committed
Remove unreachable yields
1 parent 260f105 commit d6b4f0c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/test_streaming.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,6 @@ def test_streaming_generator_raises_error(self):
12841284
def error_stream(x):
12851285
yield f"{x}_chunk_0"
12861286
raise ValueError("Generator error mid-stream")
1287-
yield f"{x}_chunk_1" # noqa: unreachable
12881287

12891288
controller = build_flow(
12901289
[
@@ -1321,7 +1320,6 @@ async def _test():
13211320
def error_stream(x):
13221321
yield f"{x}_chunk_0"
13231322
raise ValueError("Generator error mid-stream")
1324-
yield f"{x}_chunk_1" # noqa: unreachable
13251323

13261324
controller = build_flow(
13271325
[

0 commit comments

Comments
 (0)