Skip to content

Commit 2bcb05a

Browse files
authored
Tests for #523 (#538)
1 parent ca6b9fe commit 2bcb05a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/inputs/proto3_field_presence/test_proto3_field_presence.py

+5
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ def test_json(ref_json: str, obj_json: str) -> None:
4141
"test8": None,
4242
"test9": None,
4343
}
44+
45+
46+
def test_unset_access(): # see #523
47+
assert Test().test1 is None
48+
assert Test(test1=None).test1 is None

0 commit comments

Comments
 (0)