From 504f787549c7af0cbdc40afbb0c78971e2d7ceeb Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Fri, 29 Sep 2023 16:19:47 +0800 Subject: [PATCH] Revert "try removing flaky tests" This reverts commit 4c64221ca818b92442083654995b6ea5eb139f6c. --- tests/parser/features/iteration/test_for_in_list.py | 7 +++++++ tests/parser/syntax/test_for_range.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/tests/parser/features/iteration/test_for_in_list.py b/tests/parser/features/iteration/test_for_in_list.py index 42e5b57949..ebde55d228 100644 --- a/tests/parser/features/iteration/test_for_in_list.py +++ b/tests/parser/features/iteration/test_for_in_list.py @@ -701,6 +701,13 @@ def foo(): """, StateAccessViolation, ), + """ +@external +def foo(): + a: int128 = 6 + for i in range(a,a-3): + pass + """, # invalid argument length ( """ diff --git a/tests/parser/syntax/test_for_range.py b/tests/parser/syntax/test_for_range.py index 943ba4f5a8..e6f35c1d2d 100644 --- a/tests/parser/syntax/test_for_range.py +++ b/tests/parser/syntax/test_for_range.py @@ -55,6 +55,13 @@ def foo(): pass """, """ +@external +def foo(): + x: int128 = 5 + for i in range(x, x + 10): + pass + """, + """ interface Foo: def kick(): nonpayable foos: Foo[3]