Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit 65292c7

Browse files
author
misakwa
committed
Fix recursive type test
1 parent afd9acd commit 65292c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_hook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,6 @@ def test_load_slots():
135135
rec = thriftpy.load('parser-cases/recursive_union.thrift', use_slots=True)
136136
rec_slots = rec.Dynamic.__slots__
137137
assert rec_slots == ['boolean', 'integer', 'doubl', 'str', 'arr', 'object']
138+
dyn = rec.Dynamic()
138139
with pytest.raises(AttributeError):
139-
rec.Dynamic.attr_not_exist = "shouldn't work"
140+
dyn.attr_not_exist = "shouldn't work"

0 commit comments

Comments
 (0)