From 9e6bd3cb47cecdc4417029dbb009875f22c73474 Mon Sep 17 00:00:00 2001 From: Ye Kuang Date: Sun, 5 Jul 2020 20:41:29 +0900 Subject: [PATCH] [bug] Fix test_fibonacci (#1414) --- tests/python/test_tuple_assign.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/python/test_tuple_assign.py b/tests/python/test_tuple_assign.py index ec606cd88b6d2..8b89a6f4ce645 100644 --- a/tests/python/test_tuple_assign.py +++ b/tests/python/test_tuple_assign.py @@ -6,7 +6,8 @@ def test_fibonacci(): @ti.kernel def ti_fibonacci(n: ti.i32) -> ti.i32: a, b = 0, 1 - if 1: + # This is to make the inner for loop serial on purpose... + for _ in range(1): for i in range(n): a, b = b, a + b return b