Skip to content

Commit 3843b6b

Browse files
committed
Fix a test defect
1 parent 2ba226c commit 3843b6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

msrc-appconfig/tests/schema_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ def test_unsupported_type(mocker):
137137
# Tuples must be homogenious
138138
mk_schema(("a", ty.Tuple[int, str]))
139139
with pytest.raises(TypeError):
140-
# Tuple element cannot be a schema
141-
mk_schema(("a", ty.Tuple[mk_class(("a", int))]))
140+
# Tuple element must be any atomic but a schema
141+
A = mk_class(("a", int))
142+
mk_schema(("a", ty.Tuple[A]))
142143
mocker.patch("msrc.appconfig.schema.get_schema",
143144
return_value=(("a", 0),))
144145

0 commit comments

Comments
 (0)