Skip to content

Commit bd82058

Browse files
authored
Fix local_worker_manager_test when run from command line (#452)
1 parent 2136716 commit bd82058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler_opt/distributed/local/local_worker_manager_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from compiler_opt.distributed.local import local_worker_manager
2525
from tf_agents.system import system_multiprocessing as multiprocessing
2626

27-
_TEST_FLAG = flags.DEFINE_integer(
27+
flags.DEFINE_integer(
2828
'test_only_flag', default=1, help='A flag used by some tests.')
2929

3030

@@ -74,7 +74,7 @@ def method(self):
7474
class JobGetFlags(Worker):
7575

7676
def method(self):
77-
return {'argv': sys.argv, 'the_flag': _TEST_FLAG.value}
77+
return {'argv': sys.argv, 'the_flag': flags.FLAGS.test_only_flag}
7878

7979

8080
class LocalWorkerManagerTest(absltest.TestCase):

0 commit comments

Comments
 (0)