Skip to content

Commit 19a1c4c

Browse files
authored
Tests for #523
1 parent ca6b9fe commit 19a1c4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/inputs/proto3_field_presence/test_proto3_field_presence.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ def test_json(ref_json: str, obj_json: str) -> None:
4141
"test8": None,
4242
"test9": None,
4343
}
44+
45+
def test_unset_access(): # see #523
46+
with pytest.raises(AttributeError):
47+
Test().test1
48+
with pytest.raises(AttributeError):
49+
Test(test1=None).test1

0 commit comments

Comments
 (0)