From: Scott Gasch Date: Tue, 18 Oct 2022 03:51:05 +0000 (-0700) Subject: Stop calling internal method _resolve in run_tests.py. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=7278ecc869330a341d194eecacaed4c00596971e;p=pyutils.git Stop calling internal method _resolve in run_tests.py. --- diff --git a/tests/run_tests.py b/tests/run_tests.py index b46168c..06d4a9c 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -18,6 +18,7 @@ from overrides import overrides from pyutils import ansi, bootstrap, config, dict_utils, exec_utils, text_utils from pyutils.files import file_utils +from pyutils.parallelize import deferred_operand from pyutils.parallelize import parallelize as par from pyutils.parallelize import smart_future, thread_utils @@ -289,7 +290,7 @@ class TemplatedTestRunner(TestRunner, ABC): self.test_results.tests_executed[test_to_run.name] = time.time() for future in smart_future.wait_any(running, log_exceptions=False): - result = future._resolve() + result = deferred_operand.DeferredOperand.resolve(future) logger.debug('Test %s finished.', result.name) # We sometimes run the same test more than once. Do not allow