Skip to content

Commit

Permalink
stop test if something fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet authored Aug 16, 2024
1 parent 0e9cfc0 commit c130340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tutorials/tests/test_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ def sanitize_block(block):
print(f"{block.split()=}")
if block.split()[0].endswith(".py"):
print(f"Running: {block}")
subprocess.run(sanitize_block(block))
# Check=True makes sure this code returns early
subprocess.run(sanitize_block(block), check=True)

0 comments on commit c130340

Please sign in to comment.