Skip to content

Commit d49fd6f

Browse files
committed
Limit dict-with-bad-type-args test to 3.10+
1 parent 9076de0 commit d49fd6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_attribute_keyed_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Parent(SQLModel, table=True):
5050

5151
# typing.Dict throws if it receives the wrong number of type arguments, but
5252
# dict (3.10+) does not.
53-
@pytest.skipif(sys.version_info < 3.10)
53+
@pytest.mark.skipif(sys.version_info < (3, 10), reason="dict is not subscriptable")
5454
def test_dict_relationship_throws_on_missing_annotation_arg(clear_sqlmodel):
5555
class Color(str, Enum):
5656
Orange = "Orange"

0 commit comments

Comments
 (0)