Skip to content

Commit 7f054a2

Browse files
committed
Fix expected exception
1 parent 291d36d commit 7f054a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_utils/test_schema_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def test_add_enum_with_extra_kwargs(
247247
elif extra_kwargs.keys() - enum_meta_slots:
248248
# Handle the case of extra kwargs include a key that is not a meta slot of
249249
# `EnumDefinition`
250-
with pytest.raises(ValueError):
250+
with pytest.raises(TypeError):
251251
builder.add_enum(enum_def, **extra_kwargs)
252252
else:
253253
builder.add_enum(enum_def, **extra_kwargs)

0 commit comments

Comments
 (0)