Skip to content

Commit

Permalink
[skip ci] mark ti.archs_excluding(ti.opengl) in test_types.py (since …
Browse files Browse the repository at this point in the history
…GL only supports i32, f32, f64)
  • Loading branch information
archibate committed Feb 25, 2020
1 parent c7575fc commit 976d387
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/python/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def wrapped():
test()
return wrapped

@ti.all_archs
# OpenGL doesn't support so much types for now
@ti.archs_excluding(ti.opengl)
@all_data_types_and_test
def test_type_assign_argument(dt):
x = ti.var(dt, shape=())
Expand All @@ -26,7 +27,7 @@ def func(value: dt):

return tester

@ti.all_archs
@ti.archs_excluding(ti.opengl)
@all_data_types_and_test
def test_type_operator(dt):
x = ti.var(dt, shape=())
Expand All @@ -50,7 +51,7 @@ def func():

return tester

@ti.all_archs
@ti.archs_excluding(ti.opengl)
@all_data_types_and_test
def test_type_tensor(dt):
x = ti.var(dt, shape=(3, 2))
Expand All @@ -67,7 +68,7 @@ def func(i: ti.i32, j: ti.i32):

return tester

@ti.all_archs
@ti.archs_excluding(ti.opengl)
def _test_overflow(dt, n):
a = ti.var(dt, shape=())
b = ti.var(dt, shape=())
Expand Down

0 comments on commit 976d387

Please sign in to comment.