Skip to content

Commit 76ca330

Browse files
committed
update
1 parent 4294c89 commit 76ca330

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/lightning/fabric/plugins/environments/lightning.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

tests/tests_fabric/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
8785
def thread_police_duuu_daaa_duuu_daaa():

tests/tests_pytorch/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
138135
def reset_deterministic_algorithm():

0 commit comments

Comments
 (0)