From 3485bfd2aae5a139984d8b6746c0f787042c0af7 Mon Sep 17 00:00:00 2001 From: Dmitrii Makarenko Date: Mon, 29 Jul 2024 19:11:35 +0200 Subject: [PATCH] [FIX Pytest] Resolve 'importlib' issue (#78) This commit resolves issue, that occurs on main 'pytest run'. ``` _triton_C_dir = importlib.resources.files(triton._C).joinpath("") E AttributeError: module 'importlib' has no attribute 'resources' ``` --- third_party/cpu/backend/driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/cpu/backend/driver.py b/third_party/cpu/backend/driver.py index fbeb129e0c15..2cedbcae99ba 100644 --- a/third_party/cpu/backend/driver.py +++ b/third_party/cpu/backend/driver.py @@ -1,6 +1,7 @@ import os import hashlib import importlib +import importlib.resources import tempfile import triton._C