From d69a1ae9d7712fe1782ccc7e1be60d31cbbc3df6 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Wed, 28 May 2025 13:55:02 -0700 Subject: [PATCH] [ci] Migrate to new threading interface Signed-off-by: Emmanuel Ferdman --- tests/python/test_offline_cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/test_offline_cache.py b/tests/python/test_offline_cache.py index bcc7310bde768..5a907acf7aee4 100644 --- a/tests/python/test_offline_cache.py +++ b/tests/python/test_offline_cache.py @@ -43,7 +43,7 @@ def expected_num_cache_files(num_kernels: int = 0) -> int: def tmp_offline_cache_file_path(): - return join(OFFLINE_CACHE_TEMP_DIR, str(threading.currentThread().ident)) + return join(OFFLINE_CACHE_TEMP_DIR, str(threading.current_thread().ident)) def current_thread_ext_options(): @@ -399,7 +399,7 @@ def helper(): def trigger_compile(): x[0] += 1 - # This case is used for testing SNodeTree storeing order matters (i.e., use a ordered container such as vector instead of unordered_map or unordered_set) when generating kernel offline cache key + # This case is used for testing SNodeTree storing order matters (i.e., use a ordered container such as vector instead of unordered_map or unordered_set) when generating kernel offline cache key # The multiple `trigger_compile` equalivant to allocate each field to a different SNodeTree # i.e., # x = ti.field(float)