@@ -1130,7 +1130,7 @@ def __init__(
11301130
11311131 Args:
11321132 method_name (str, optional): The name of the test method to run. Defaults to "runTest".
1133- methodName (str, optional): Alternative way to specify the test method name. If provided and not "runTest", it overrides `method_name`.
1133+ methodName (str, optional): Alternative way to specify the test method name.
11341134
11351135 Notes:
11361136 - If `methodName` is not "runTest", it takes precedence over `method_name`.
@@ -1148,7 +1148,6 @@ def setUp(self) -> None:
11481148 self .local_rank = ExternalMultiProcessTestCase ._get_env_rank (local_rank = True )
11491149 self .file_name = None
11501150
1151-
11521151 @staticmethod
11531152 def _get_env_rank (local_rank : bool ) -> int :
11541153 """Return the local or global process rank derived from environment variables.
@@ -1191,7 +1190,6 @@ def _get_env_rank(local_rank: bool) -> int:
11911190 f"Could not determine { rank_type } rank from environment variables: { ', ' .join (rank_env_vars )} "
11921191 )
11931192
1194-
11951193 @staticmethod
11961194 def _get_env_world_size () -> int :
11971195 """
@@ -1207,7 +1205,7 @@ def _get_env_world_size() -> int:
12071205 value = os .environ .get ("WORLD_SIZE" )
12081206 if value is None :
12091207 raise RuntimeError (
1210- "Required environment variable 'WORLD_SIZE' is not defined. This variable is necessary for running distributed tests."
1208+ "Required environment variable 'WORLD_SIZE' is not defined which is necessary for running distributed tests."
12111209 )
12121210 value = value .strip ()
12131211 if value == "" :
@@ -1219,7 +1217,6 @@ def _get_env_world_size() -> int:
12191217 f"Environment variable 'WORLD_SIZE' is not an integer, got '{ value } '"
12201218 ) from err
12211219
1222-
12231220 @property
12241221 def world_size (self ) -> int :
12251222 """
@@ -1233,7 +1230,6 @@ def world_size(self) -> int:
12331230 """
12341231 return ExternalMultiProcessTestCase ._get_env_world_size ()
12351232
1236-
12371233 def run_test (self , test_name : str ) -> None :
12381234 return
12391235 if sys .platform != "win32" and sys .platform != "darwin" :
0 commit comments