Skip to content

Commit f7e07f5

Browse files
minor cleaning
1 parent ad721ba commit f7e07f5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pytest_parallel/mpi_reporter.py

-10
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,10 @@ def pytest_collection_modifyitems(self, config, items):
9292
def pytest_runtest_protocol(self, item, nextitem):
9393
if self.barrier_at_test_start:
9494
self.global_comm.barrier()
95-
#print(f'pytest_runtest_protocol beg {MPI.COMM_WORLD.rank=}')
9695
_ = yield
97-
#print(f'pytest_runtest_protocol end {MPI.COMM_WORLD.rank=}')
9896
if self.barrier_at_test_end:
9997
self.global_comm.barrier()
10098

101-
#@pytest.hookimpl(tryfirst=True)
102-
#def pytest_runtest_protocol(self, item, nextitem):
103-
# if self.barrier_at_test_start:
104-
# self.global_comm.barrier()
105-
# print(f'pytest_runtest_protocol beg {MPI.COMM_WORLD.rank=}')
106-
# if item.sub_comm == MPI.COMM_NULL:
107-
# return True # for this hook, `firstresult=True` so returning a non-None will stop other hooks to run
108-
10999
@pytest.hookimpl(tryfirst=True)
110100
def pytest_pyfunc_call(self, pyfuncitem):
111101
#print(f'pytest_pyfunc_call {MPI.COMM_WORLD.rank=}')

0 commit comments

Comments
 (0)