Skip to content

Commit 92f9857

Browse files
Remove duplicated raise_on_run_directly
1 parent a280d2f commit 92f9857

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

torch/testing/_internal/common_utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,6 @@ def enable_profiling_mode_for_profiling_tests():
871871
torch._C._jit_set_profiling_executor(old_prof_exec_state)
872872
torch._C._get_graph_executor_optimize(old_prof_mode_state)
873873

874-
def raise_on_run_directly(file_to_call):
875-
raise RuntimeError("This test file is not meant to be run directly, "
876-
f"use:\n\n\tpython {file_to_call} TESTNAME\n\n"
877-
"instead.")
878-
879874
@contextmanager
880875
def enable_profiling_mode():
881876
old_prof_exec_state = torch._C._jit_set_profiling_executor(True)

0 commit comments

Comments
 (0)