diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/core/types.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/types.py b/test/core/types.py index 96765fe7..c59a68d6 100644 --- a/test/core/types.py +++ b/test/core/types.py @@ -256,7 +256,8 @@ class InStruct(MemStruct): class ContStruct(MemStruct): fields = [ ("one", Num("B")), - ("instruct", InStruct.get_type()), + # Shorthand for: ("instruct", InStruct.get_type()), + ("instruct", InStruct), ("last", Num("B")), ] @@ -290,7 +291,7 @@ class UniStruct(MemStruct): fields = [ ("one", Num("B")), ("union", Union([ - ("instruct", InStruct.get_type()), + ("instruct", InStruct), ("i", Num(">I")), ])), ("last", Num("B")), |