File tree Expand file tree Collapse file tree 3 files changed +0
-7
lines changed
src/lightning/fabric/plugins/environments Expand file tree Collapse file tree 3 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,6 @@ def find_free_network_port() -> int:
112112 `MASTER_PORT` environment variable.
113113
114114 """
115- # If an external launcher already specified a MASTER_PORT (for example, torch.distributed.spawn or
116- # multiprocessing helpers), reserve it through the port manager so no other test reuses the same number.
117115 s = socket .socket (socket .AF_INET , socket .SOCK_STREAM )
118116 s .bind (("" , 0 ))
119117 port = s .getsockname ()[1 ]
Original file line number Diff line number Diff line change @@ -80,8 +80,6 @@ def teardown_process_group():
8080 yield
8181 _destroy_dist_connection ()
8282
83- os .environ .pop ("MASTER_PORT" , None )
84-
8583
8684@pytest .fixture (autouse = True )
8785def thread_police_duuu_daaa_duuu_daaa ():
Original file line number Diff line number Diff line change @@ -130,9 +130,6 @@ def teardown_process_group():
130130 yield
131131 _destroy_dist_connection ()
132132
133- # clean MASTER_PORT environment variable, to avoid leaking between tests
134- os .environ .pop ("MASTER_PORT" , None )
135-
136133
137134@pytest .fixture (autouse = True )
138135def reset_deterministic_algorithm ():
You can’t perform that action at this time.
0 commit comments