Skip to content

Commit

Permalink
Use multiprocessing.handle_test_main in buffered_scheduler_test (#380)
Browse files Browse the repository at this point in the history
This is necessary to enable the test to run internally and makes it
consistent with other tests that call multiprocessing functionality
under the hood.
  • Loading branch information
boomanaiden154 authored Oct 5, 2024
1 parent bd86496 commit 6efc0a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler_opt/distributed/buffered_scheduler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from compiler_opt.distributed import worker
from compiler_opt.distributed import buffered_scheduler
from compiler_opt.distributed.local import local_worker_manager
from tf_agents.system import system_multiprocessing as multiprocessing


class BufferedSchedulerTest(absltest.TestCase):
Expand Down Expand Up @@ -144,4 +145,4 @@ def task():


if __name__ == '__main__':
absltest.main()
multiprocessing.handle_test_main(absltest.main)

0 comments on commit 6efc0a8

Please sign in to comment.