diff --git a/compiler_opt/es/blackbox_evaluator_test.py b/compiler_opt/es/blackbox_evaluator_test.py index 8eca1bf0..bac38395 100644 --- a/compiler_opt/es/blackbox_evaluator_test.py +++ b/compiler_opt/es/blackbox_evaluator_test.py @@ -56,7 +56,7 @@ def test_trace_get_results(self): blackbox_test_utils.ESTraceWorker, count=3, arg='', kwarg='') as pool: perturbations = [b'00', b'01', b'10'] test_corpus = corpus.create_corpus_for_testing( - location=self.create_tempdir(), + location=self.create_tempdir().full_path, elements=[corpus.ModuleSpec(name='name1', size=1)]) evaluator = blackbox_evaluator.TraceBlackboxEvaluator( test_corpus, 5, 'fake_bb_trace_path', 'fake_function_index_path') @@ -68,7 +68,7 @@ def test_trace_set_baseline(self): with local_worker_manager.LocalWorkerPoolManager( blackbox_test_utils.ESTraceWorker, count=1, arg='', kwarg='') as pool: test_corpus = corpus.create_corpus_for_testing( - location=self.create_tempdir(), + location=self.create_tempdir().full_path, elements=[corpus.ModuleSpec(name='name1', size=1)]) evaluator = blackbox_evaluator.TraceBlackboxEvaluator( test_corpus, 5, 'fake_bb_trace_path', 'fake_function_index_path')