We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cbea13 commit e8b34ecCopy full SHA for e8b34ec
1 file changed
cuda_bindings/tests/test_basics.py
@@ -2,6 +2,7 @@
2
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
3
4
import enum
5
+import sys
6
7
import pytest
8
from cuda.bindings.utils import _fast_enum
@@ -59,7 +60,8 @@ def test_enum(MyEnum):
59
60
61
for item in container:
62
assert isinstance(item, container)
- assert item in container
63
+ if sys.version_info >= (3, 12):
64
+ assert item in container
65
assert item.value in container
66
assert item.name in dir(container)
67
for item2 in container:
0 commit comments