Skip to content

Commit

Permalink
handle disabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Oct 23, 2024
1 parent b05da89 commit eea37f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def memray_profile(
memray_option = pytestconfig.getoption("--memray")

if memray_option == "none":
yield
yield contextlib.nullcontext
elif memray_option != "scheduler":
raise ValueError(f"Unhandled value for --memray: {memray_option}")
else:
Expand Down

0 comments on commit eea37f2

Please sign in to comment.