Repository navigation
Commit 57bcf4c
committed
cuda.core.texture: fix stale address_mode entry-rejection test (NVIDIA#2292)
The StrEnum migration (item 4 of NVIDIA#2292) makes a plain str acceptable
anywhere an AddressModeType is expected. A bad tuple entry like "bad" is
therefore a valid *type* but an invalid *value*, so _normalize_enum
rejects it with a ValueError (naming the offending position
address_mode[1]), not a TypeError. Update the test to assert ValueError
and rename it to test_address_mode_rejects_invalid_entry. This is the
second of the two CI failures on PR NVIDIA#2307; the first (the stale
options-type message) was fixed in the previous commit.1 parent 16940d7 commit 57bcf4c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
| 970 | + | |
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
974 | 977 | | |
975 | | - | |
| 978 | + | |
976 | 979 | | |
977 | 980 | | |
978 | 981 | | |
| |||
0 commit comments