Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ax/utils/common/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,10 @@ def signal_handler(signum: int, frame: Optional[FrameType]) -> None:
message += (
" To see a profiler output, set `TestCase.PROFILE_TESTS` to `True`."
)

if self._long_test_active_reason is None:
if hasattr(sys, "gettrace") and sys.gettrace() is not None:
# If we're in a debugger session, let the test continue running.
return
elif self._long_test_active_reason is None:
message += (
" To specify a reason for a long running test,"
+ " utilize the @ax_long_test decorator. If your test "
Expand Down