diff --git a/tests/functional/builtins/codegen/test_slice.py b/tests/functional/builtins/codegen/test_slice.py index 01421349bc..03dc7cc56d 100644 --- a/tests/functional/builtins/codegen/test_slice.py +++ b/tests/functional/builtins/codegen/test_slice.py @@ -217,8 +217,10 @@ def test_slice_private(get_contract, location): # test there are no buffer overruns in the slice function if location == "storage": decl = "bytez: public(String[12])" - else: + elif location == "transient": decl = "bytez: public(transient(String[12]))" + else: + raise Exception("unreachable") code = f""" {decl}