diff --git a/tests/unit/test_visitor.py b/tests/unit/test_visitor.py index 51be4bb9..f76e0565 100644 --- a/tests/unit/test_visitor.py +++ b/tests/unit/test_visitor.py @@ -126,7 +126,11 @@ class MyInt(int): ( TypedDictExample, Visitor.typed_dict, - (TypedDictExample, {"key1": str, "key2": List[int]}, {"key1", "key2"}), + ( + TypedDictExample, + {"key1": str, "key2": List[int]}, + {"key1", "key2"} if sys.version_info >= (3, 9) else set(), + ), ), (Optional[int], Visitor.union, [(int, NoneType)]), (Union[int, str], Visitor.union, [(int, str)]),