Skip to content

Commit e27c5a5

Browse files
committed
Remove temporary hack
1 parent c825c6f commit e27c5a5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/pynguin/instrumentation/controlflow.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,7 @@ def _split_try_begin_blocks(blocks: ControlFlowGraph) -> None:
541541
for block in blocks:
542542
for i, instr in enumerate(block):
543543
if isinstance(instr, TryBegin):
544-
# We need to handle the next block manually here because there is a
545-
# bug in the bytecode library that does not set the next block correctly
546-
# after splitting a block.
547-
next_block = block.next_block
548-
new_block = blocks.split_block(block, i + 1)
549-
new_block.next_block = next_block
544+
blocks.split_block(block, i + 1)
550545

551546
@staticmethod
552547
def _create_nodes_and_edges(

0 commit comments

Comments
 (0)