Skip to content

Commit 84f24f2

Browse files
committed
fixed utest for py3.9
1 parent 05b4772 commit 84f24f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/plugin/test_amdsmi_collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import importlib
22
import sys
33
import types
4-
from typing import Tuple
4+
from typing import Optional, Tuple
55

66
import pytest
77

@@ -29,7 +29,7 @@ class AmdSmiTimeoutError(_BaseAmdSmiError): ...
2929

3030
def make_fake_amdsmi(
3131
*,
32-
handles: Tuple[object, ...] | None = None,
32+
handles: Optional[Tuple[object, ...]] = None,
3333
lib_version="1.2.3",
3434
rocm_version="6.1.0",
3535
pcie_static=True,

0 commit comments

Comments
 (0)